From 1e4b7033ca728c01d3588678369da7b24f0d408f Mon Sep 17 00:00:00 2001 From: gewlitys Date: Wed, 18 Dec 2002 15:14:38 +0000 Subject: [PATCH] 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 --- sc2/src/sc2code/libs/graphics/sdl/opengl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sc2/src/sc2code/libs/graphics/sdl/opengl.c b/sc2/src/sc2code/libs/graphics/sdl/opengl.c index 8bef1a942..46054ad47 100644 --- a/sc2/src/sc2code/libs/graphics/sdl/opengl.c +++ b/sc2/src/sc2code/libs/graphics/sdl/opengl.c @@ -32,10 +32,12 @@ static BOOLEAN upload_transitiontexture = FALSE; #define R_MASK 0x00ff0000 #define G_MASK 0x0000ff00 #define B_MASK 0x000000ff +#define A_MASK 0xff000000 #else #define R_MASK 0x000000ff #define G_MASK 0x0000ff00 #define B_MASK 0x00ff0000 +#define A_MASK 0xff000000 #endif 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, - R_MASK, G_MASK, B_MASK, 0x00000000); + R_MASK, G_MASK, B_MASK, A_MASK); if (format_conv_surf == NULL) {