changeset 4017:9a451f59b388 SDL-1.2

This looks like it might hit Bugzilla #441, too, so we'll play it safe.
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 08 Jul 2007 01:55:46 +0000
parents 3f93ccc2c01e
children a8a548394a81
files src/video/nanox/SDL_nxvideo.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/nanox/SDL_nxvideo.c	Sun Jul 08 01:50:26 2007 +0000
+++ b/src/video/nanox/SDL_nxvideo.c	Sun Jul 08 01:55:46 2007 +0000
@@ -380,6 +380,9 @@
         current -> pitch = SDL_CalculatePitch (current) ;
         NX_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: