early-access version 1667
This commit is contained in:
10
externals/SDL/src/video/SDL_RLEaccel.c
vendored
10
externals/SDL/src/video/SDL_RLEaccel.c
vendored
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
Simple DirectMedia Layer
|
||||
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
|
||||
Copyright (C) 1997-2021 Sam Lantinga <slouken@libsdl.org>
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
@@ -1423,9 +1423,13 @@ SDL_RLESurface(SDL_Surface * surface)
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* If we don't have colorkey or blending, nothing to do... */
|
||||
flags = surface->map->info.flags;
|
||||
if (!(flags & (SDL_COPY_COLORKEY | SDL_COPY_BLEND))) {
|
||||
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... */
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user