# HG changeset patch # User Ryan C. Gordon # Date 1183859426 0 # Node ID 3f93ccc2c01e1a297ebd5d073e3738eb72df64ca # Parent 7e878cc4250ae0f1b4c1fdbaf7649585bf39d93c 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. diff -r 7e878cc4250a -r 3f93ccc2c01e src/video/x11/SDL_x11video.c --- 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: