From 2edfddb12b024372698aea1753eee04d5f164437 Mon Sep 17 00:00:00 2001 From: avolkov Date: Tue, 20 Dec 2005 06:31:55 +0000 Subject: [PATCH] Transparency specification fix for paletted images git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2089 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/graphics/sdl/3do_getbody.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc2/src/sc2code/libs/graphics/sdl/3do_getbody.c b/sc2/src/sc2code/libs/graphics/sdl/3do_getbody.c index 7340d6233..b6eb5a573 100644 --- a/sc2/src/sc2code/libs/graphics/sdl/3do_getbody.c +++ b/sc2/src/sc2code/libs/graphics/sdl/3do_getbody.c @@ -54,7 +54,7 @@ process_image (FRAMEPTR FramePtr, SDL_Surface *img[], AniData *ani, int cel_ct) // handle transparency cases if (img[cel_ct]->format->palette) { // indexed color image - if (ani[cel_ct].transparent_color != -1) + if (ani[cel_ct].transparent_color >= 0) SDL_SetColorKey (img[cel_ct], SDL_SRCCOLORKEY, ani[cel_ct].transparent_color); }