Added fading to Cocoa display mode setting.

This commit is contained in:
Keith Pitt
2013-02-24 21:12:21 +01:00
committed by Camilla Berglund
parent 1ae9ce1e0a
commit 34ce04a122
2 changed files with 35 additions and 2 deletions
+4 -2
View File
@@ -770,9 +770,11 @@ void _glfwPlatformDestroyWindow(_GLFWwindow* window)
if (window->monitor)
{
[[window->ns.object contentView] exitFullScreenModeWithOptions:nil];
_glfwRestoreVideoMode(window->monitor);
// Exit full screen after the video restore to avoid a nasty display
// flickering during the fade.
[[window->ns.object contentView] exitFullScreenModeWithOptions:nil];
}
_glfwDestroyContext(window);