Fixed a bug introduced by MacOS X fix

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@435 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
gewlitys
2002-12-18 15:14:38 +00:00
parent 7cff39157f
commit 1e4b7033ca
+3 -1
View File
@@ -32,10 +32,12 @@ static BOOLEAN upload_transitiontexture = FALSE;
#define R_MASK 0x00ff0000 #define R_MASK 0x00ff0000
#define G_MASK 0x0000ff00 #define G_MASK 0x0000ff00
#define B_MASK 0x000000ff #define B_MASK 0x000000ff
#define A_MASK 0xff000000
#else #else
#define R_MASK 0x000000ff #define R_MASK 0x000000ff
#define G_MASK 0x0000ff00 #define G_MASK 0x0000ff00
#define B_MASK 0x00ff0000 #define B_MASK 0x00ff0000
#define A_MASK 0xff000000
#endif #endif
int int
@@ -150,7 +152,7 @@ TFB_GL_InitGraphics (int driver, int flags, int width, int height, int bpp)
} }
format_conv_surf = SDL_CreateRGBSurface(SDL_SWSURFACE, 0, 0, 32, format_conv_surf = SDL_CreateRGBSurface(SDL_SWSURFACE, 0, 0, 32,
R_MASK, G_MASK, B_MASK, 0x00000000); R_MASK, G_MASK, B_MASK, A_MASK);
if (format_conv_surf == NULL) if (format_conv_surf == NULL)
{ {