Changed texture transparent color to 0x0001 for future compatibility with fxsdk and gint.
This commit is contained in:
parent
5ba0ff9be3
commit
8f63135415
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
#include <SDL3/SDL_render.h>
|
||||
|
||||
#define TEXTURE_TRANSPARENT_COLOR 0x0001
|
||||
|
||||
typedef SDL_Texture texture_t;
|
||||
|
||||
texture_t *load_texture(void);
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ texture_t *load_texture(void)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if(!SDL_SetSurfaceColorKey(tmp_surface, true, 0xF81F))
|
||||
if(!SDL_SetSurfaceColorKey(tmp_surface, true, TEXTURE_TRANSPARENT_COLOR))
|
||||
{
|
||||
error_printf("Failed to set color key of temporary surface : %s", SDL_GetError());
|
||||
SDL_DestroySurface(tmp_surface);
|
||||
|
|
|
|||
Loading…
Reference in New Issue