Fix video modes not restored when hiding OS X app

This commit is contained in:
Camilla Berglund
2015-09-09 13:31:40 +02:00
parent adf130965c
commit fb6fbcf700
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -287,6 +287,14 @@ static int translateKey(unsigned int key)
_glfwPlatformPostEmptyEvent();
}
- (void)applicationDidHide:(NSNotification *)notification
{
int i;
for (i = 0; i < _glfw.monitorCount; i++)
_glfwRestoreVideoMode(_glfw.monitors[i]);
}
@end