summaryrefslogtreecommitdiff
path: root/src/rlgl.c
diff options
context:
space:
mode:
authorjussi2023-04-09 22:19:47 +0300
committerjussi2023-04-09 22:19:47 +0300
commitf4ae19ca7d62a2bc6b125a1ddb678300b30790d2 (patch)
tree057373c6d815aacfc5127bdba274b848ccbd93be /src/rlgl.c
parent6dad6544d7196905668b4863487daa00ac9843f7 (diff)
downloadreilua-enhanced-f4ae19ca7d62a2bc6b125a1ddb678300b30790d2.tar.gz
reilua-enhanced-f4ae19ca7d62a2bc6b125a1ddb678300b30790d2.tar.bz2
reilua-enhanced-f4ae19ca7d62a2bc6b125a1ddb678300b30790d2.zip
New argument style for rlgl, text, lights and math.
Diffstat (limited to 'src/rlgl.c')
-rw-r--r--src/rlgl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rlgl.c b/src/rlgl.c
index c025c01..3a9efdb 100644
--- a/src/rlgl.c
+++ b/src/rlgl.c
@@ -16,12 +16,12 @@ Set the line drawing width
- Success return true
*/
int lrlglSetLineWidth( lua_State *L ) {
- if ( !lua_isnumber( L, -1 ) ) {
+ if ( !lua_isnumber( L, 1 ) ) {
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.rlSetLineWidth( float width )" );
lua_pushboolean( L, false );
return 1;
}
- rlSetLineWidth( lua_tonumber( L, -1 ) );
+ rlSetLineWidth( lua_tonumber( L, 1 ) );
lua_pushboolean( L, true );
return 1;