Fixed Quartz UpdateRects failing to draw after a second SDL_SetVideoMode().

--HG--
branch : SDL-1.2
This commit is contained in:
Ryan C. Gordon 2011-09-15 20:59:57 -04:00
parent ea25fe0933
commit 177e46f158

View file

@ -1097,6 +1097,12 @@ static SDL_Surface* QZ_SetVideoMode (_THIS, SDL_Surface *current, int width,
return NULL; return NULL;
} }
if (qz_window != nil) {
NSGraphicsContext *ctx;
ctx = [NSGraphicsContext graphicsContextWithWindow:qz_window];
[NSGraphicsContext setCurrentContext:ctx];
}
/* Setup the new pixel format */ /* Setup the new pixel format */
{ {
int amask = 0, int amask = 0,