Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
2266:e61ad15a205f | 2267:c785543d1843 |
---|---|
199 return 0; | 199 return 0; |
200 } | 200 } |
201 | 201 |
202 /* Save the alpha blending attributes */ | 202 /* Save the alpha blending attributes */ |
203 saved_flags = surface->flags & (SDL_SRCALPHA | SDL_RLEACCELOK); | 203 saved_flags = surface->flags & (SDL_SRCALPHA | SDL_RLEACCELOK); |
204 saved_alpha = surface->format->alpha; | 204 SDL_GetSurfaceAlphaMod(surface, &saved_alpha); |
205 if ((saved_flags & SDL_SRCALPHA) == SDL_SRCALPHA) { | 205 if ((saved_flags & SDL_SRCALPHA) == SDL_SRCALPHA) { |
206 SDL_SetAlpha(surface, 0, 0); | 206 SDL_SetAlpha(surface, 0, 0); |
207 } | 207 } |
208 | 208 |
209 /* Copy the surface into the GL texture image */ | 209 /* Copy the surface into the GL texture image */ |