From a8a00f5498ddf77ff314d29146b7d6b50e5c599f Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 2 Mar 2004 19:38:55 +0000 Subject: [PATCH] Force recreation of X11 window if going to or from a SDL_NOFRAME vidmode. --- src/video/x11/SDL_x11video.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/video/x11/SDL_x11video.c b/src/video/x11/SDL_x11video.c index e2e88b43d..ee63754a1 100644 --- a/src/video/x11/SDL_x11video.c +++ b/src/video/x11/SDL_x11video.c @@ -942,8 +942,9 @@ SDL_Surface *X11_SetVideoMode(_THIS, SDL_Surface *current, /* 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;