# HG changeset patch # User Ryan C. Gordon # Date 1183859746 0 # Node ID 9a451f59b388df9fe77e652d6b368d506e8c3e99 # Parent 3f93ccc2c01e1a297ebd5d073e3738eb72df64ca This looks like it might hit Bugzilla #441, too, so we'll play it safe. diff -r 3f93ccc2c01e -r 9a451f59b388 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: