mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 05:06:46 -05:00
Fixed Quartz UpdateRects failing to draw after a second SDL_SetVideoMode().
--HG-- branch : SDL-1.2
This commit is contained in:
@@ -1097,6 +1097,12 @@ static SDL_Surface* QZ_SetVideoMode (_THIS, SDL_Surface *current, int width,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (qz_window != nil) {
|
||||
NSGraphicsContext *ctx;
|
||||
ctx = [NSGraphicsContext graphicsContextWithWindow:qz_window];
|
||||
[NSGraphicsContext setCurrentContext:ctx];
|
||||
}
|
||||
|
||||
/* Setup the new pixel format */
|
||||
{
|
||||
int amask = 0,
|
||||
|
||||
Reference in New Issue
Block a user