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.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402438
This commit is contained in:
Ryan C. Gordon 2007-07-08 01:50:26 +00:00
parent 2a5d0ac5c9
commit f6d3643ebb

View file

@ -1203,6 +1203,9 @@ SDL_Surface *X11_SetVideoMode(_THIS, SDL_Surface *current,
current->pitch = SDL_CalculatePitch(current); current->pitch = SDL_CalculatePitch(current);
X11_ResizeImage(this, current, flags); 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)); current->flags |= (flags&(SDL_RESIZABLE|SDL_NOFRAME));
done: done: