summaryrefslogtreecommitdiff
path: root/src/textures.c
diff options
context:
space:
mode:
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 )