diff options
| author | jussi | 2023-02-08 01:21:03 +0200 |
|---|---|---|
| committer | jussi | 2023-02-08 01:21:03 +0200 |
| commit | cf7c480aca8e24c62e6563e96a1bb4636a1ac81f (patch) | |
| tree | 193376cb290dd4522b2fbe2240826716b7ec69f8 /src | |
| parent | db957a8181497a25e52328882e6e0f98d6551d0b (diff) | |
| download | reilua-enhanced-cf7c480aca8e24c62e6563e96a1bb4636a1ac81f.tar.gz reilua-enhanced-cf7c480aca8e24c62e6563e96a1bb4636a1ac81f.tar.bz2 reilua-enhanced-cf7c480aca8e24c62e6563e96a1bb4636a1ac81f.zip | |
BLEND_ALPHA_PREMULTIPLY.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lua_core.c | 1 | ||||
| -rw-r--r-- | src/textures.c | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lua_core.c b/src/lua_core.c index 7056f40..32759bf 100644 --- a/src/lua_core.c +++ b/src/lua_core.c @@ -323,6 +323,7 @@ void defineGlobals() { assignGlobalInt( BLEND_MULTIPLIED, "BLEND_MULTIPLIED" ); assignGlobalInt( BLEND_ADD_COLORS, "BLEND_ADD_COLORS" ); assignGlobalInt( BLEND_SUBTRACT_COLORS, "BLEND_SUBTRACT_COLORS" ); + assignGlobalInt( BLEND_ALPHA_PREMULTIPLY, "BLEND_ALPHA_PREMULTIPLY" ); assignGlobalInt( BLEND_CUSTOM, "BLEND_CUSTOM" ); /* Gesture */ assignGlobalInt( GESTURE_NONE, "GESTURE_NONE" ); diff --git a/src/textures.c b/src/textures.c index 0b1a198..5121718 100644 --- a/src/textures.c +++ b/src/textures.c @@ -695,10 +695,10 @@ int ltexturesImageAlphaClear( lua_State *L ) { lua_pushboolean( L, false ); return 1; } - Color color = uluaGetColor( L ); - lua_pop( L, 1 ); float threshold = lua_tonumber( L, -1 ); lua_pop( L, 1 ); + Color color = uluaGetColor( L ); + lua_pop( L, 1 ); size_t imageId = lua_tointeger( L, -1 ); if ( !validImage( imageId ) ) { @@ -1766,7 +1766,6 @@ int ltexturesLoadRenderTexture( lua_State *L ) { return 1; } - /* > success = RL_UnloadTexture( Texture2D texture ) |
