]> git.sesse.net Git - vlc/commitdiff
* Use the proper parent object to do var_Get macosx-black on. Fixes the issue where...
authorDerk-Jan Hartman <hartman@videolan.org>
Thu, 9 Mar 2006 15:57:48 +0000 (15:57 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Thu, 9 Mar 2006 15:57:48 +0000 (15:57 +0000)
modules/gui/macosx/vout.m

index a0426bc6cb3a467d42398db4fd79b711f9841787..f6fa1136124c1a07ae48dda5954a699ac7ea8ed3 100644 (file)
@@ -966,7 +966,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
               backing: NSBackingStoreBuffered
               defer: YES screen: o_screen];
 
-        if( var_GetBool( p_vout, "macosx-black" ) )
+        if( var_GetBool( p_real_vout, "macosx-black" ) )
         {
             CGAcquireDisplayFadeReservation(kCGMaxDisplayReservationInterval, &token);
             CGDisplayFade( token, 0.5, kCGDisplayBlendNormal, kCGDisplayBlendSolidColor, 0, 0, 0, true );
@@ -1008,7 +1008,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
             BeginFullScreen( &p_fullscreen_state, NULL, 0, 0,
                              NULL, NULL, fullScreenAllowEvents );
         }
-        if( var_GetBool( p_vout, "macosx-black" ) )
+        if( var_GetBool( p_real_vout, "macosx-black" ) )
         {
             CGAcquireDisplayFadeReservation(kCGMaxDisplayReservationInterval, &token);
             CGDisplayFade( token, 2 , kCGDisplayBlendSolidColor, kCGDisplayBlendNormal, 0, 0, 0, false );