src/video/quartz/SDL_QuartzVideo.m
branchSDL-1.2
changeset 3877 81f66f258d77
parent 1756 eed7a3f396ce
child 3936 c5c3c772f5aa
--- a/src/video/quartz/SDL_QuartzVideo.m	Sun Sep 24 00:55:00 2006 +0000
+++ b/src/video/quartz/SDL_QuartzVideo.m	Sun Sep 24 01:27:40 2006 +0000
@@ -43,21 +43,6 @@
 @end
 
 
-/* 
-    Structure for rez switch gamma fades
-    We can hide the monitor flicker by setting the gamma tables to 0
-*/
-#define QZ_GAMMA_TABLE_SIZE 256
-
-typedef struct {
-
-    CGGammaValue red[QZ_GAMMA_TABLE_SIZE];
-    CGGammaValue green[QZ_GAMMA_TABLE_SIZE];
-    CGGammaValue blue[QZ_GAMMA_TABLE_SIZE];
-
-} SDL_QuartzGammaTable;
-
-
 /* Bootstrap functions */
 static int              QZ_Available ();
 static SDL_VideoDevice* QZ_CreateDevice (int device_index);
@@ -385,10 +370,10 @@
             CGLSetFullScreen (NULL);
         }
         if (to_desktop) {
+            ShowMenuBar ();
             /* Restore original screen resolution/bpp */
             CGDisplaySwitchToMode (display_id, save_mode);
             CGReleaseAllDisplays ();
-            ShowMenuBar ();
             /* 
                 Reset the main screen's rectangle
                 See comment in QZ_SetVideoFullscreen for why we do this