[vlc-devel] commit: macosx: In detached mode don' t fade out all screens when switching to fullscreen with multiple displays. (Pierre d'Herbemont )
git version control
git at videolan.org
Thu Jul 24 00:01:52 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Wed Jul 23 19:45:53 2008 +0200| [9b730a3ef2d1f8967f292567453589fa164bd0af]
macosx: In detached mode don't fade out all screens when switching to fullscreen with multiple displays.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9b730a3ef2d1f8967f292567453589fa164bd0af
---
modules/gui/macosx/vout.m | 11 +----------
1 files changed, 1 insertions(+), 10 deletions(-)
diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m
index 1f70b78..6c8cfff 100644
--- a/modules/gui/macosx/vout.m
+++ b/modules/gui/macosx/vout.m
@@ -1114,18 +1114,9 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
screen = [NSScreen screenWithDisplayID: (CGDirectDisplayID)i_device];
if( !screen ) screen = [self screen];
- if( b_black && [[NSScreen screens] count] > 1)
- {
- CGDisplayFadeReservationToken token;
- CGAcquireDisplayFadeReservation(kCGMaxDisplayReservationInterval, &token);
- CGDisplayFade( token, 0.2 , kCGDisplayBlendNormal, kCGDisplayBlendSolidColor, 0, 0, 0, YES );
-
+ if( b_black )
[screen blackoutOtherScreens];
- CGDisplayFade( token, 0.1 , kCGDisplayBlendSolidColor, kCGDisplayBlendNormal, 0, 0, 0, NO );
- CGReleaseDisplayFadeReservation( token);
- }
-
[self setMovableByWindowBackground: NO];
if( [screen isMainScreen] )
More information about the vlc-devel
mailing list