Skip to content

Commit

Permalink
Merge pull request #4 from d954mas/master
Browse files Browse the repository at this point in the history
Rect angle can be lower zero
  • Loading branch information
AGulev committed Jul 30, 2018
2 parents 5a1b145 + e817616 commit 81f34d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drawpixels/src/drawpixels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ static int draw_filled_rect(lua_State* L) {
{
a = luaL_checknumber(L, 9);
}
uint32_t angle = 0;
int angle = 0;
if (lua_isnumber(L, 10) == 1)
{
angle = luaL_checknumber(L, 10);
Expand Down

0 comments on commit 81f34d6

Please sign in to comment.