diff options
| author | jussi | 2022-12-02 22:53:51 +0200 |
|---|---|---|
| committer | jussi | 2022-12-02 22:53:51 +0200 |
| commit | bdbd475ae30b75aaad113f913ed9c70668b471b8 (patch) | |
| tree | 6b9315484e64facf3d404e5c4a5d9d94bf6e55e1 /src | |
| parent | 2479049e1a1cd754df486df0142fabe67723de72 (diff) | |
| download | reilua-enhanced-bdbd475ae30b75aaad113f913ed9c70668b471b8.tar.gz reilua-enhanced-bdbd475ae30b75aaad113f913ed9c70668b471b8.tar.bz2 reilua-enhanced-bdbd475ae30b75aaad113f913ed9c70668b471b8.zip | |
ReiLuaGui basics done.
Diffstat (limited to 'src')
| -rw-r--r-- | src/shapes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shapes.c b/src/shapes.c index 0faab80..30006ce 100644 --- a/src/shapes.c +++ b/src/shapes.c @@ -118,7 +118,7 @@ int lshapesDrawLineBezier( lua_State *L ) { } /* -> success = RL_DrawLineBezier( Vector2 startPos, Vector2 endPos, Vector2 controlPos, float thickness, Color color ) +> success = RL_DrawLineBezierQuad( Vector2 startPos, Vector2 endPos, Vector2 controlPos, float thickness, Color color ) Draw line using quadratic bezier curves with a control point @@ -371,7 +371,7 @@ Draw ellipse - Success return true */ int lshapesDrawEllipse( lua_State *L ) { - if ( !lua_istable( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { + if ( !lua_istable( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawEllipse( Vector2 center, float radiusH, float radiusV, Color color )" ); lua_pushboolean( L, false ); return 1; @@ -399,7 +399,7 @@ Draw ellipse outline - Success return true */ int lshapesDrawEllipseLines( lua_State *L ) { - if ( !lua_istable( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { + if ( !lua_istable( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) { TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawEllipseLines( Vector2 center, float radiusH, float radiusV, Color color )" ); lua_pushboolean( L, false ); return 1; |
