Changeset 6442 in vbox
- Timestamp:
- Jan 22, 2008 1:57:50 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 27417
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleWnd.h
r6441 r6442 331 331 CGImageRef dockImgBack100x75; 332 332 CGImageRef dockImgOS; 333 /* For the fade effect if the the window goes fullscreen */ 334 CGDisplayFadeReservationToken mFadeToken; 333 335 #endif 334 336 }; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r6441 r6442 1013 1013 setViewInSeamlessMode(QRect(console->mapToGlobal(QPoint(0, 0)), console->size())); 1014 1014 #endif 1015 #ifdef Q_WS_MAC 1016 if(!mIsSeamless) 1017 { 1018 /* Fade back to the normal gamma */ 1019 CGDisplayFade(mFadeToken, 0.5, kCGDisplayBlendSolidColor, kCGDisplayBlendNormal, 0.0, 0.0, 0.0, false); 1020 CGReleaseDisplayFadeReservation(mFadeToken); 1021 } 1022 #endif 1015 1023 1016 1024 vmSeamlessAction->setEnabled (mIsSeamless); … … 1025 1033 { 1026 1034 disconnect (console, SIGNAL (resizeHintDone()), 0, 0); 1035 #ifdef Q_WS_MAC 1036 if(!mIsSeamless) 1037 { 1038 /* Fade back to the normal gamma */ 1039 CGDisplayFade(mFadeToken, 0.5, kCGDisplayBlendSolidColor, kCGDisplayBlendNormal, 0.0, 0.0, 0.0, false); 1040 CGReleaseDisplayFadeReservation(mFadeToken); 1041 } 1042 #endif 1027 1043 1028 1044 vmSeamlessAction->setEnabled (mIsSeamlessSupported); … … 1912 1928 bool VBoxConsoleWnd::toggleFullscreenMode (bool aOn, bool aSeamless) 1913 1929 { 1930 #ifdef Q_WS_MAC 1931 if (!aSeamless) 1932 { 1933 /* Fade to black */ 1934 CGAcquireDisplayFadeReservation(kCGMaxDisplayReservationInterval, &mFadeToken); 1935 CGDisplayFade(mFadeToken, 0.3, kCGDisplayBlendNormal, kCGDisplayBlendSolidColor, 0.0, 0.0, 0.0, true); 1936 } 1937 #endif 1914 1938 1915 1939 if (aSeamless)
Note:
See TracChangeset
for help on using the changeset viewer.