This looks like it might hit Bugzilla #441, too, so we'll play it safe. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Sun, 08 Jul 2007 01:55:46 +0000
branchSDL-1.2
changeset 4017 9a451f59b388
parent 4016 3f93ccc2c01e
child 4018 a8a548394a81
This looks like it might hit Bugzilla #441, too, so we'll play it safe.
src/video/nanox/SDL_nxvideo.c
--- 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: