comparison src/video/SDL_surface.c @ 845:333db1d87876

Fixed a bug in detecting surface mapping changes
author Sam Lantinga <slouken@libsdl.org>
date Thu, 19 Feb 2004 21:13:24 +0000
parents b8d311d90021
children 01cddd0f2efb
comparison
equal deleted inserted replaced
844:cd0c77df70a4 845:333db1d87876
104 surface->pixels = NULL; 104 surface->pixels = NULL;
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;
110 surface->unused1 = 0; 109 surface->unused1 = 0;
111 SDL_SetClipRect(surface, NULL); 110 SDL_SetClipRect(surface, NULL);
111 SDL_FormatChanged(surface);
112 112
113 /* Get the pixels */ 113 /* Get the pixels */
114 if ( ((flags&SDL_HWSURFACE) == SDL_SWSURFACE) || 114 if ( ((flags&SDL_HWSURFACE) == SDL_SWSURFACE) ||
115 (video->AllocHWSurface(this, surface) < 0) ) { 115 (video->AllocHWSurface(this, surface) < 0) ) {
116 if ( surface->w && surface->h ) { 116 if ( surface->w && surface->h ) {