SDL-1.2: Quartz fullscreen video contentRect was used uninitialized.
--HG-- branch : SDL-1.2
This commit is contained in:
parent
8a03e49b27
commit
18aab5b130
1 changed files with 2 additions and 0 deletions
|
@ -479,6 +479,8 @@ static SDL_Surface* QZ_SetVideoFullScreen (_THIS, SDL_Surface *current, int widt
|
||||||
NSRect contentRect;
|
NSRect contentRect;
|
||||||
CGDisplayFadeReservationToken fade_token = kCGDisplayFadeReservationInvalidToken;
|
CGDisplayFadeReservationToken fade_token = kCGDisplayFadeReservationInvalidToken;
|
||||||
|
|
||||||
|
contentRect = NSMakeRect (0, 0, width, height);
|
||||||
|
|
||||||
/* Fade to black to hide resolution-switching flicker (and garbage
|
/* Fade to black to hide resolution-switching flicker (and garbage
|
||||||
that is displayed by a destroyed OpenGL context, if applicable) */
|
that is displayed by a destroyed OpenGL context, if applicable) */
|
||||||
if ( CGAcquireDisplayFadeReservation (5, &fade_token) == kCGErrorSuccess ) {
|
if ( CGAcquireDisplayFadeReservation (5, &fade_token) == kCGErrorSuccess ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue