diff options
| author | jussi | 2024-07-16 21:52:30 +0300 |
|---|---|---|
| committer | jussi | 2024-07-16 21:52:30 +0300 |
| commit | 9dceeb8c058267e04bf551db7a9659e3ba5bdab3 (patch) | |
| tree | e642e0bae55536045013d1ce8477b54706cde38a /src/rgui.c | |
| parent | f64b17ec71dea4ecae4d19ce75871331909a3881 (diff) | |
| download | reilua-enhanced-9dceeb8c058267e04bf551db7a9659e3ba5bdab3.tar.gz reilua-enhanced-9dceeb8c058267e04bf551db7a9659e3ba5bdab3.tar.bz2 reilua-enhanced-9dceeb8c058267e04bf551db7a9659e3ba5bdab3.zip | |
Reigui property_list and tree_view use scrissor mode.
Diffstat (limited to 'src/rgui.c')
| -rw-r--r-- | src/rgui.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -705,7 +705,7 @@ int lguiGuiValueBox( lua_State* L ) { } /* -> result, text = RL.GuiTextBox( Rectangle bounds, string text, int textSize, bool editMode ) +> result, text = RL.GuiTextBox( Rectangle bounds, string text, int bufferSize, bool editMode ) Text Box control, updates input text @@ -713,12 +713,12 @@ Text Box control, updates input text */ int lguiGuiTextBox( lua_State* L ) { Rectangle bounds = uluaGetRectangle( L, 1 ); - int textSize = luaL_checkinteger( L, 3 ); - char text[ textSize + 1 ]; + int bufferSize = luaL_checkinteger( L, 3 ); + char text[ bufferSize + 1 ]; strcpy( text, luaL_checkstring( L, 2 ) ); bool editMode = uluaGetBoolean( L, 4 ); - lua_pushinteger( L, GuiTextBox( bounds, text, textSize, editMode ) ); + lua_pushinteger( L, GuiTextBox( bounds, text, bufferSize, editMode ) ); lua_pushstring( L, text ); return 2; |
