Project

General

Profile

Feature #924 ยป 0030-sdl3-Update-alphablit-to-sdl3-changes.patch

Marko Lindqvist, 10/06/2024 09:38 PM

View differences:

client/gui-sdl3/graphics.c
SDL_Surface *dst, SDL_Rect *dstrect,
unsigned char alpha_mod)
{
int ret;
bool ret;
if (src == NULL || dst == NULL) {
return 1;
......
ret = SDL_BlitSurface(src, srcrect, dst, dstrect);
if (ret) {
if (!ret) {
log_error("SDL_BlitSurface() fails: %s", SDL_GetError());
return -1;
}
return ret;
return 0;
}
/**********************************************************************//**
    (1-1/1)