From bdbd475ae30b75aaad113f913ed9c70668b471b8 Mon Sep 17 00:00:00 2001 From: jussi Date: Fri, 2 Dec 2022 22:53:51 +0200 Subject: ReiLuaGui basics done. --- src/shapes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/shapes.c') 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; -- cgit v1.2.3