[vlc-commits] macosx: select right screen when fullscreen on startup is enabled

David Fuhrmann git at videolan.org
Fri Jul 6 15:42:17 CEST 2012


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Fri Jul  6 14:54:11 2012 +0200| [b71b4312976d6ee7b067c8dbfeb59dab83da5505] | committer: David Fuhrmann

macosx: select right screen when fullscreen on startup is enabled

close #7051

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b71b4312976d6ee7b067c8dbfeb59dab83da5505
---

 modules/gui/macosx/MainWindow.m |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index b996b53..cd4e80c 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -1950,13 +1950,10 @@ static VLCMainWindow *_o_sharedInstance = nil;
     NSScreen *screen;
     NSRect screen_rect;
     NSRect rect;
-    vout_thread_t *p_vout = getVout();
     BOOL blackout_other_displays = config_GetInt( VLCIntf, "macosx-black" );
     id o_videoWindow = b_nonembedded ? o_detached_video_window : self;
 
-    if( p_vout )
-        screen = [NSScreen screenWithDisplayID:(CGDirectDisplayID)config_GetInt( VLCIntf, "macosx-vdev" )];
-
+    screen = [NSScreen screenWithDisplayID:(CGDirectDisplayID)config_GetInt( VLCIntf, "macosx-vdev" )];
     [self lockFullscreenAnimation];
 
     if (!screen)
@@ -1970,9 +1967,6 @@ static VLCMainWindow *_o_sharedInstance = nil;
         screen = [NSScreen deepestScreen];
     }
 
-    if( p_vout )
-        vlc_object_release( p_vout );
-
     screen_rect = [screen frame];
 
     [o_fullscreen_btn setState: YES];



More information about the vlc-commits mailing list