From e61823b8bb69e258370503df7969e4e3c2089e2d Mon Sep 17 00:00:00 2001 From: jussi Date: Wed, 1 Nov 2023 23:36:31 +0200 Subject: LoadFontEx fix. DrawTextBoxed and DrawTextBoxedSelectable From raylib [text] example - Rectangle bounds. --- src/textures.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/textures.c') diff --git a/src/textures.c b/src/textures.c index cef43f5..f31d4d8 100644 --- a/src/textures.c +++ b/src/textures.c @@ -1123,14 +1123,14 @@ int ltexturesUpdateTexture( lua_State *L ) { unsigned char *pixels = malloc( len * 4 * sizeof( unsigned char ) ); int t = lua_gettop( L ); - int i = 0; + unsigned int i = 0; lua_pushnil( L ); while ( lua_next( L, t ) != 0 ) { size_t colLen = uluaGetTableLen( L, lua_gettop( L ) ); int t2 = lua_gettop( L ); - int j = 0; + unsigned int j = 0; lua_pushnil( L ); while ( lua_next( L, t2 ) != 0 ) { @@ -1151,8 +1151,8 @@ int ltexturesUpdateTexture( lua_State *L ) { /* > RL.UpdateTextureRec( Texture texture, Rectangle rec, int{} pixels ) -Update GPU texture rectangle with new data -NOTE! Should be TEXTURE_TYPE_TEXTURE. Pixel should be in format { { 255, 255, 255, 255 }... } depending on the pixel format +Update GPU texture rectangle with new data. +Pixel should be in format { { 255, 255, 255, 255 }... } depending on the pixel format */ int ltexturesUpdateTextureRec( lua_State *L ) { Texture *texture = uluaGetTexture( L, 1 ); @@ -1162,14 +1162,14 @@ int ltexturesUpdateTextureRec( lua_State *L ) { unsigned char *pixels = malloc( len * 4 * sizeof( unsigned char ) ); int t = lua_gettop( L ); - int i = 0; + unsigned int i = 0; lua_pushnil( L ); while ( lua_next( L, t ) != 0 ) { size_t colLen = uluaGetTableLen( L, lua_gettop( L ) ); int t2 = lua_gettop( L ); - int j = 0; + unsigned int j = 0; lua_pushnil( L ); while ( lua_next( L, t2 ) != 0 ) { -- cgit v1.2.3