Changed texture transparent color to 0x0001 for future compatibility with fxsdk and gint.

This commit is contained in:
Ulysse Cura 2026-08-17 19:45:25 +02:00
parent 5ba0ff9be3
commit 8f63135415
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,8 @@
#include <SDL3/SDL_render.h>
#define TEXTURE_TRANSPARENT_COLOR 0x0001
typedef SDL_Texture texture_t;
texture_t *load_texture(void);

View File

@ -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);