Mercurial > sdl-ios-xcode
comparison src/video/SDL_surface.c @ 441:598b25b9bffe
Zeroed out SDL_Surface::unused1 so glSDL will work on stock SDL
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 17 Aug 2002 19:17:01 +0000 |
parents | 41cadcba32e8 |
children | 1be0cdaf8092 |
comparison
equal
deleted
inserted
replaced
440:791d5ce383bc | 441:598b25b9bffe |
---|---|
105 surface->offset = 0; | 105 surface->offset = 0; |
106 surface->hwdata = NULL; | 106 surface->hwdata = NULL; |
107 surface->locked = 0; | 107 surface->locked = 0; |
108 surface->map = NULL; | 108 surface->map = NULL; |
109 surface->format_version = 0; | 109 surface->format_version = 0; |
110 surface->unused1 = 0; | |
110 SDL_SetClipRect(surface, NULL); | 111 SDL_SetClipRect(surface, NULL); |
111 | 112 |
112 /* Get the pixels */ | 113 /* Get the pixels */ |
113 if ( ((flags&SDL_HWSURFACE) == SDL_SWSURFACE) || | 114 if ( ((flags&SDL_HWSURFACE) == SDL_SWSURFACE) || |
114 (video->AllocHWSurface(this, surface) < 0) ) { | 115 (video->AllocHWSurface(this, surface) < 0) ) { |