Mercurial > sdl-ios-xcode
diff src/SDL_compat.c @ 2328:91e601d9df8b
re: bug#563. checking in some commented out trace code and a fix so that the in testalpha.c the background only flashes when alpha == 255. The problem that is being
fixed is caused by clearing SDL_COPY_RLE_COLORKEY without setting SDL_COPY_RLE_DESIRED in SDL_UnRELSurface.
author | Bob Pendleton <bob@pendleton.com> |
---|---|
date | Fri, 14 Mar 2008 18:17:49 +0000 |
parents | c25d45b7add3 |
children | 3eb72191bb7e e1da92da346c 44e49d3fa6cf |
line wrap: on
line diff
--- a/src/SDL_compat.c Fri Mar 07 23:57:15 2008 +0000 +++ b/src/SDL_compat.c Fri Mar 14 18:17:49 2008 +0000 @@ -29,15 +29,14 @@ #include "video/SDL_sysvideo.h" #include "video/SDL_pixels_c.h" - -static SDL_WindowID SDL_VideoWindow; +static SDL_WindowID SDL_VideoWindow = 0; static SDL_RendererInfo SDL_VideoRendererInfo; -static SDL_TextureID SDL_VideoTexture; -static SDL_Surface *SDL_VideoSurface; -static SDL_Surface *SDL_ShadowSurface; -static SDL_Surface *SDL_PublicSurface; -static SDL_GLContext *SDL_VideoContext; -static char *wm_title; +static SDL_TextureID SDL_VideoTexture = 0; +static SDL_Surface *SDL_VideoSurface = NULL; +static SDL_Surface *SDL_ShadowSurface = NULL; +static SDL_Surface *SDL_PublicSurface = NULL; +static SDL_GLContext *SDL_VideoContext = NULL; +static char *wm_title = NULL; char * SDL_AudioDriverName(char *namebuf, int maxlen) @@ -391,7 +390,7 @@ SDL_VideoSurface = NULL; } if (SDL_VideoContext) { - SDL_GL_MakeCurrent(0, NULL); + /* SDL_GL_MakeCurrent(0, NULL); *//* Doesn't do anything */ SDL_GL_DeleteContext(SDL_VideoContext); SDL_VideoContext = NULL; }