diff 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
line wrap: on
line diff
--- a/src/video/SDL_surface.c	Wed Feb 18 03:57:13 2004 +0000
+++ b/src/video/SDL_surface.c	Thu Feb 19 21:13:24 2004 +0000
@@ -106,9 +106,9 @@
 	surface->hwdata = NULL;
 	surface->locked = 0;
 	surface->map = NULL;
-	surface->format_version = 0;
 	surface->unused1 = 0;
 	SDL_SetClipRect(surface, NULL);
+	SDL_FormatChanged(surface);
 
 	/* Get the pixels */
 	if ( ((flags&SDL_HWSURFACE) == SDL_SWSURFACE) ||