Commit b82c0bc1 authored by Ryan C. Gordon's avatar Ryan C. Gordon

Force recreation of X11 window if going to or from a SDL_NOFRAME vidmode.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40868
parent 7a82cd65
...@@ -942,8 +942,9 @@ SDL_Surface *X11_SetVideoMode(_THIS, SDL_Surface *current, ...@@ -942,8 +942,9 @@ SDL_Surface *X11_SetVideoMode(_THIS, SDL_Surface *current,
/* Set up the X11 window */ /* Set up the X11 window */
saved_flags = current->flags; saved_flags = current->flags;
if (SDL_Window && (saved_flags&SDL_OPENGL) == (flags&SDL_OPENGL) if ( (SDL_Window) && ((saved_flags&SDL_OPENGL) == (flags&SDL_OPENGL))
&& bpp == current->format->BitsPerPixel) { && (bpp == current->format->BitsPerPixel)
&& ((saved_flags&SDL_NOFRAME) == (flags&SDL_NOFRAME)) ) {
if (X11_ResizeWindow(this, current, width, height, flags) < 0) { if (X11_ResizeWindow(this, current, width, height, flags) < 0) {
current = NULL; current = NULL;
goto done; goto done;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment