changeset 4442:31b0f2e06e3c SDL-1.2

SDL-1.2: Quartz fullscreen video contentRect was used uninitialized.
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 25 Apr 2010 20:16:38 -0400
parents 7bb8f748a14d
children 74b5387da0c4
files src/video/quartz/SDL_QuartzVideo.m
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 ) {