SDL-1.2: Quartz fullscreen video contentRect was used uninitialized. SDL-1.2
authorRyan C. Gordon
Sun, 25 Apr 2010 20:16:38 -0400
branchSDL-1.2
changeset 444231b0f2e06e3c
parent 4440 7bb8f748a14d
child 4538 74b5387da0c4
SDL-1.2: Quartz fullscreen video contentRect was used uninitialized.
src/video/quartz/SDL_QuartzVideo.m
     1.1 --- a/src/video/quartz/SDL_QuartzVideo.m	Fri Apr 23 02:19:19 2010 -0700
     1.2 +++ b/src/video/quartz/SDL_QuartzVideo.m	Sun Apr 25 20:16:38 2010 -0400
     1.3 @@ -479,6 +479,8 @@
     1.4      NSRect contentRect;
     1.5      CGDisplayFadeReservationToken fade_token = kCGDisplayFadeReservationInvalidToken;
     1.6  
     1.7 +    contentRect = NSMakeRect (0, 0, width, height);
     1.8 +
     1.9      /* Fade to black to hide resolution-switching flicker (and garbage
    1.10         that is displayed by a destroyed OpenGL context, if applicable) */
    1.11      if ( CGAcquireDisplayFadeReservation (5, &fade_token) == kCGErrorSuccess ) {