Feature #924 ยป 0030-sdl3-Update-alphablit-to-sdl3-changes.patch
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;
|
||
}
|
||
/**********************************************************************//**
|