mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Merge commit 'c93e3b36074ddb2ed986cbacc5e9d4f3a60db343' into main
This commit is contained in:
commit
572dfb4f6e
@ -1423,9 +1423,12 @@ SDL_RLESurface(SDL_Surface * surface)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (flags & SDL_COPY_COLORKEY) {
|
||||||
|
/* ok */
|
||||||
|
} else if ((flags & SDL_COPY_BLEND) && surface->format->Amask) {
|
||||||
|
/* ok */
|
||||||
|
} else {
|
||||||
/* If we don't have colorkey or blending, nothing to do... */
|
/* If we don't have colorkey or blending, nothing to do... */
|
||||||
flags = surface->map->info.flags;
|
|
||||||
if (!(flags & (SDL_COPY_COLORKEY | SDL_COPY_BLEND))) {
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user