From c3ab0ed545f450e68732b9f63babd6b5e2576a59 Mon Sep 17 00:00:00 2001 From: Michael Martin Date: Sun, 27 Oct 2019 14:43:30 -0700 Subject: [PATCH] Fix transparency in truecolor RGBA images, from Ala-lala --- sc2/src/libs/graphics/sdl/sdl_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc2/src/libs/graphics/sdl/sdl_common.c b/sc2/src/libs/graphics/sdl/sdl_common.c index e1bd7b2b4..2257d9f72 100644 --- a/sc2/src/libs/graphics/sdl/sdl_common.c +++ b/sc2/src/libs/graphics/sdl/sdl_common.c @@ -529,5 +529,5 @@ int TFB_HasColorKey (SDL_Surface *surface) { Uint32 key; - return TFB_GetColorKey (surface, &key) != 0; + return TFB_GetColorKey (surface, &key) == 0; }