summaryrefslogtreecommitdiff
path: root/src/textures.c
diff options
context:
space:
mode:
authorjussi2022-04-01 20:35:43 +0300
committerjussi2022-04-01 20:35:43 +0300
commit7665cf4bc16a423d4cd98174853dcc36de08787e (patch)
tree34320026165dab240e1678ae1905b10dee24710c /src/textures.c
parent7928f9dbab6829f73c57e6dd4ede0da6cea023b0 (diff)
downloadreilua-enhanced-7665cf4bc16a423d4cd98174853dcc36de08787e.tar.gz
reilua-enhanced-7665cf4bc16a423d4cd98174853dcc36de08787e.tar.bz2
reilua-enhanced-7665cf4bc16a423d4cd98174853dcc36de08787e.zip
GuiIconText.
Diffstat (limited to 'src/textures.c')
-rw-r--r--src/textures.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/textures.c b/src/textures.c
index 8357f68..119c8e4 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -1353,7 +1353,7 @@ Get Color structure from hexadecimal value
- Success return Color
*/
int ltexturesGetColor( lua_State *L ) {
- if ( !lua_istable( L, -1 ) ) {
+ if ( !lua_isnumber( L, -1 ) ) {
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetColor( unsigned int hexValue )" );
lua_pushboolean( L, false );
return 1;
@@ -1394,10 +1394,6 @@ int ltexturesGetPixelColor( lua_State *L ) {
return 1;
}
-
-
-Color GetPixelColor(void *srcPtr, int format);
-
/*
> size = RL_GetPixelDataSize( int width, int height, int format )