From 94b62c4c7353bc9fd9d8bcd4095af1bf0a9e3d4a Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 8 Jul 2007 01:50:26 +0000 Subject: [PATCH] Clear the NOFRAME and RESIZABLE flags in the X11 target before setting their new values, so multiple calls to SetVideoMode() that toggle these will end up with the right data. Fixes Bugzilla #441. --- src/video/x11/SDL_x11video.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video/x11/SDL_x11video.c b/src/video/x11/SDL_x11video.c index 61a014496..7fde77eb4 100644 --- a/src/video/x11/SDL_x11video.c +++ b/src/video/x11/SDL_x11video.c @@ -1203,6 +1203,9 @@ SDL_Surface *X11_SetVideoMode(_THIS, SDL_Surface *current, 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: