]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/embeddedwindow.m
Fix main screen detection on Mac OS X.
[vlc] / modules / gui / macosx / embeddedwindow.m
index 7510e787671dfbf5631eb1b561bd7180ff0d9a4b..02c848814f1d321522f0810f58a7589e9183a56f 100644 (file)
             CGAcquireDisplayFadeReservation(kCGMaxDisplayReservationInterval, &token);
             CGDisplayFade( token, 0.3, kCGDisplayBlendNormal, kCGDisplayBlendSolidColor, 0, 0, 0, YES );
             
-            if (screen == [NSScreen mainScreen])
+            if ([screen isMainScreen])
                 SetSystemUIMode( kUIModeAllHidden, kUIOptionAutoShowMenuBar);
             
             [[self contentView] replaceSubview:o_view with:o_temp_view];
         [o_fullscreen_anim2 release];
     }
  
-    if (screen == [NSScreen mainScreen])
+    if ([screen isMainScreen])
         SetSystemUIMode( kUIModeAllHidden, kUIOptionAutoShowMenuBar);
 
     dict1 = [[NSMutableDictionary alloc] initWithCapacity:2];