Ver código fonte

Fixed link error introduced by previous commit

David Avedissian 11 anos atrás
pai
commit
4658e72b84
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      src/cocoa_window.m

+ 3 - 2
src/cocoa_window.m

@@ -186,13 +186,14 @@ static NSRect convertRectToBacking(_GLFWwindow* window, NSRect contentRect)
 - (void)windowDidBecomeKey:(NSNotification *)notification
 - (void)windowDidBecomeKey:(NSNotification *)notification
 {
 {
     _glfwInputWindowFocus(window, GL_TRUE);
     _glfwInputWindowFocus(window, GL_TRUE);
-    _glfwPlatformSetCursorMode(window, window->cursorMode);
+    _glfwPlatformApplyCursorMode(window, window->cursorMode);
 }
 }
 
 
 - (void)windowDidResignKey:(NSNotification *)notification
 - (void)windowDidResignKey:(NSNotification *)notification
 {
 {
     _glfwInputWindowFocus(window, GL_FALSE);
     _glfwInputWindowFocus(window, GL_FALSE);
-    _glfwPlatformSetCursorMode(window, GLFW_CURSOR_NORMAL);
+    window->cursorMode = GLFW_CURSOR_NORMAL;
+    _glfwPlatformApplyCursorMode(window);
 }
 }
 
 
 @end
 @end