Project

General

Profile

Feature #48 ยป 0020-sdl3-Replace-SDL_GetColorKey-calls-with-SDL_GetSurfa.patch

Marko Lindqvist, 12/09/2023 08:58 PM

View differences:

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);
}
    (1-1/1)