# HG changeset patch # User Ryan C. Gordon # Date 1272240998 14400 # Node ID 31b0f2e06e3c1f630776c613ea57b66a0caa8e95 # Parent 7bb8f748a14d9d4a4277cfd7ae806cf08aaf9d36 SDL-1.2: Quartz fullscreen video contentRect was used uninitialized. diff -r 7bb8f748a14d -r 31b0f2e06e3c src/video/quartz/SDL_QuartzVideo.m --- a/src/video/quartz/SDL_QuartzVideo.m Fri Apr 23 02:19:19 2010 -0700 +++ b/src/video/quartz/SDL_QuartzVideo.m Sun Apr 25 20:16:38 2010 -0400 @@ -479,6 +479,8 @@ NSRect contentRect; CGDisplayFadeReservationToken fade_token = kCGDisplayFadeReservationInvalidToken; + contentRect = NSMakeRect (0, 0, width, height); + /* Fade to black to hide resolution-switching flicker (and garbage that is displayed by a destroyed OpenGL context, if applicable) */ if ( CGAcquireDisplayFadeReservation (5, &fade_token) == kCGErrorSuccess ) {