fix uninintialized values

This commit is contained in:
Glenn Maynard
2004-01-21 05:48:07 +00:00
parent 3d0d191e91
commit ae5f6e267e
+2
View File
@@ -276,6 +276,8 @@ SDL_Surface *SDL_CreateRGBSurfaceSane
static void FindAlphaRGB(const SDL_Surface *img, Uint8 &r, Uint8 &g, Uint8 &b, bool reverse)
{
r = g = b = 0;
/* If we have no alpha or no color key, there's no alpha color. */
if(img->format->BitsPerPixel == 8 && !(img->flags & SDL_SRCCOLORKEY))
return;