From e08bc99b1e5649b826cf23ba18dd2e0de577feb7 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 8 Jul 2007 01:55:46 +0000 Subject: [PATCH] This looks like it might hit Bugzilla #441, too, so we'll play it safe. --- src/video/nanox/SDL_nxvideo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video/nanox/SDL_nxvideo.c b/src/video/nanox/SDL_nxvideo.c index 12df7e2b6..89acb2a85 100644 --- a/src/video/nanox/SDL_nxvideo.c +++ b/src/video/nanox/SDL_nxvideo.c @@ -380,6 +380,9 @@ SDL_Surface * NX_SetVideoMode (_THIS, SDL_Surface * current, 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: