diff test/testgl.c @ 2267:c785543d1843

Okay, still some bugs, but everything builds again...
author Sam Lantinga <slouken@libsdl.org>
date Sat, 18 Aug 2007 05:39:09 +0000
parents 8d384b647307
children 0c653886cce7
line wrap: on
line diff
--- a/test/testgl.c	Sat Aug 18 01:44:21 2007 +0000
+++ b/test/testgl.c	Sat Aug 18 05:39:09 2007 +0000
@@ -201,7 +201,7 @@
 
     /* Save the alpha blending attributes */
     saved_flags = surface->flags & (SDL_SRCALPHA | SDL_RLEACCELOK);
-    saved_alpha = surface->format->alpha;
+    SDL_GetSurfaceAlphaMod(surface, &saved_alpha);
     if ((saved_flags & SDL_SRCALPHA) == SDL_SRCALPHA) {
         SDL_SetAlpha(surface, 0, 0);
     }