mirror of
https://github.com/yawut/SDL.git
synced 2026-08-15 21:41:32 -05:00
Force recreation of X11 window if going to or from a SDL_NOFRAME vidmode.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user