Fixed Quartz UpdateRects failing to draw after a second SDL_SetVideoMode().
--HG-- branch : SDL-1.2
This commit is contained in:
parent
ea25fe0933
commit
177e46f158
1 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue