src/video/x11/SDL_x11video.c
branchSDL-1.2
changeset 4016 3f93ccc2c01e
parent 4014 a6264945ac52
child 4067 07d621a03a94
--- a/src/video/x11/SDL_x11video.c	Sun Jul 08 01:36:16 2007 +0000
+++ b/src/video/x11/SDL_x11video.c	Sun Jul 08 01:50:26 2007 +0000
@@ -1203,6 +1203,9 @@
 		current->pitch = SDL_CalculatePitch(current);
 		X11_ResizeImage(this, current, flags);
 	}
+
+	/* Clear these flags and set them only if they are in the new set. */
+	current->flags &= ~(SDL_RESIZABLE|SDL_NOFRAME);
 	current->flags |= (flags&(SDL_RESIZABLE|SDL_NOFRAME));
 
   done: