changeset 867:5c7859610bc4

Force recreation of X11 window if going to or from a SDL_NOFRAME vidmode.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 02 Mar 2004 19:38:55 +0000
parents 0a45995a7fc3
children e805075f6d94
files src/video/x11/SDL_x11video.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/x11/SDL_x11video.c	Tue Mar 02 13:01:02 2004 +0000
+++ b/src/video/x11/SDL_x11video.c	Tue Mar 02 19:38:55 2004 +0000
@@ -942,8 +942,9 @@
 
 	/* Set up the X11 window */
 	saved_flags = current->flags;
-	if (SDL_Window && (saved_flags&SDL_OPENGL) == (flags&SDL_OPENGL)
-	    && bpp == current->format->BitsPerPixel) {
+	if ( (SDL_Window) && ((saved_flags&SDL_OPENGL) == (flags&SDL_OPENGL))
+	      && (bpp == current->format->BitsPerPixel)
+          && ((saved_flags&SDL_NOFRAME) == (flags&SDL_NOFRAME)) ) {
 		if (X11_ResizeWindow(this, current, width, height, flags) < 0) {
 			current = NULL;
 			goto done;