mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
Added fading to Cocoa display mode setting.
This commit is contained in:
committed by
Camilla Berglund
parent
1ae9ce1e0a
commit
34ce04a122
+4
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user