Commit 6a51107a authored by Ryan C. Gordon's avatar Ryan C. Gordon

This looks like it might hit Bugzilla #441, too, so we'll play it safe.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402439
parent f6d3643e
...@@ -380,6 +380,9 @@ SDL_Surface * NX_SetVideoMode (_THIS, SDL_Surface * current, ...@@ -380,6 +380,9 @@ SDL_Surface * NX_SetVideoMode (_THIS, SDL_Surface * current,
current -> pitch = SDL_CalculatePitch (current) ; current -> pitch = SDL_CalculatePitch (current) ;
NX_ResizeImage (this, current, flags) ; 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)) ; current -> flags |= (flags & (SDL_RESIZABLE | SDL_NOFRAME)) ;
done: done:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment