Skip to content

Commit

Permalink
Clear the NOFRAME and RESIZABLE flags in the X11 target before settin…
Browse files Browse the repository at this point in the history
…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 94b62c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/x11/SDL_x11video.c
Expand Up @@ -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));

done:
Expand Down

0 comments on commit 94b62c4

Please sign in to comment.