diff options
| author | jussi | 2022-11-22 19:27:34 +0200 |
|---|---|---|
| committer | jussi | 2022-11-22 19:27:34 +0200 |
| commit | c327a1ed55fafc212bf0e3bd5067ab246f1f041c (patch) | |
| tree | 3ed29ef95ab4884c90de6ac3d055c78ceba6da90 | |
| parent | 8c27a508a4ae525ffedf47606dda1795025468f6 (diff) | |
| download | reilua-enhanced-c327a1ed55fafc212bf0e3bd5067ab246f1f041c.tar.gz reilua-enhanced-c327a1ed55fafc212bf0e3bd5067ab246f1f041c.tar.bz2 reilua-enhanced-c327a1ed55fafc212bf0e3bd5067ab246f1f041c.zip | |
DrawRectangleGradient V and H expecting wrong amount of arguments.
| -rw-r--r-- | changelog | 1 | ||||
| -rw-r--r-- | src/shapes.c | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -10,3 +10,4 @@ Detailed changes: ADDED: Help argument. CHANGED: Changed fuction name RL_rlSetLineWidth to RL_rlglSetLineWidth. CHANGED: Changed fuction name RL_rlGetLineWidth to RL_rlglGetLineWidth. +FIX: DrawRectangleGradient V and H expecting wrong amount of arguments. diff --git a/src/shapes.c b/src/shapes.c index 23d3eb8..0faab80 100644 --- a/src/shapes.c +++ b/src/shapes.c @@ -549,7 +549,7 @@ Draw a vertical-gradient-filled rectangle - Success return true */ int lshapesDrawRectangleGradientV( lua_State *L ) { - if ( !lua_istable( L, -4 ) || !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { + if ( !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawRectangleGradientV( Rectangle rectangle, Color color1, Color color2 )" ); lua_pushboolean( L, false ); return 1; @@ -575,7 +575,7 @@ Draw a horizontal-gradient-filled rectangle - Success return true */ int lshapesDrawRectangleGradientH( lua_State *L ) { - if ( !lua_istable( L, -4 ) || !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { + if ( !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_DrawRectangleGradientH( Rectangle rectangle, Color color1, Color color2 )" ); lua_pushboolean( L, false ); return 1; |
