Skip to content

Commit

Permalink
Force recreation of X11 window if going to or from a SDL_NOFRAME vidm…
Browse files Browse the repository at this point in the history
…ode.
  • Loading branch information
icculus committed Mar 2, 2004
1 parent c1474d3 commit 8f29d39
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/video/x11/SDL_x11video.c
Expand Up @@ -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;
Expand Down

0 comments on commit 8f29d39

Please sign in to comment.