Transparency specification fix for paletted images
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2089 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -54,7 +54,7 @@ process_image (FRAMEPTR FramePtr, SDL_Surface *img[], AniData *ani, int cel_ct)
|
|||||||
// handle transparency cases
|
// handle transparency cases
|
||||||
if (img[cel_ct]->format->palette)
|
if (img[cel_ct]->format->palette)
|
||||||
{ // indexed color image
|
{ // indexed color image
|
||||||
if (ani[cel_ct].transparent_color != -1)
|
if (ani[cel_ct].transparent_color >= 0)
|
||||||
SDL_SetColorKey (img[cel_ct], SDL_SRCCOLORKEY,
|
SDL_SetColorKey (img[cel_ct], SDL_SRCCOLORKEY,
|
||||||
ani[cel_ct].transparent_color);
|
ani[cel_ct].transparent_color);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user