Skip to content
Browse files

Clear the NOFRAME and RESIZABLE flags in the X11 target before settin…

…g their

 new values, so multiple calls to SetVideoMode() that toggle these will end
 up with the right data.

   Fixes Bugzilla #441.
  • Loading branch information
icculus committed Jul 8, 2007
1 parent ed742a7 commit 94b62c4c7353bc9fd9d8bcd4095af1bf0a9e3d4a
Showing with 3 additions and 0 deletions.
  1. +3 −0 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));


0 comments on commit 94b62c4

Please sign in to comment.