Feature #48 ยป 0020-sdl3-Replace-SDL_GetColorKey-calls-with-SDL_GetSurfa.patch
client/gui-sdl3/graphics.c | ||
---|---|---|
minY = surf->h;
|
||
maxY = 0;
|
||
if (SDL_GetColorKey(surf, &colorkey) < 0) {
|
||
if (SDL_GetSurfaceColorKey(surf, &colorkey) < 0) {
|
||
/* Use alpha instead of colorkey */
|
||
mask = surf->format->Amask;
|
||
colorkey = 0;
|
client/gui-sdl3/gui_string.c | ||
---|---|---|
/* Create and fill surface */
|
||
if (SDL_GetColorKey(tmp[0], &color) < 0) {
|
||
if (SDL_GetSurfaceColorKey(tmp[0], &color) < 0) {
|
||
color = SDL_MapRGBA(tmp[0]->format, 0, 0, 0, 0);
|
||
}
|
||