diff --git a/src/cocoa_native.m b/src/cocoa_native.m index 2b90bc24..be8aac4b 100644 --- a/src/cocoa_native.m +++ b/src/cocoa_native.m @@ -41,7 +41,7 @@ // Returns the X11 handle of the specified window //======================================================================== -GLFWAPI id glfwGetCocoaWindow(GLFWwindow window) +GLFWAPI id glfwGetCocoaWindow(GLFWwindow handle) { _GLFWwindow* window = (_GLFWwindow*) handle; @@ -59,7 +59,7 @@ GLFWAPI id glfwGetCocoaWindow(GLFWwindow window) // Return the GLX context of the specified window //======================================================================== -GLFWAPI id glfwGetNSGLContext(GLFWwindow window) +GLFWAPI id glfwGetNSGLContext(GLFWwindow handle) { _GLFWwindow* window = (_GLFWwindow*) handle; diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 8093c3c6..a3b73c07 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -1170,7 +1170,7 @@ void _glfwPlatformSetCursorPos(_GLFWwindow* window, int x, int y) { if (window->mode == GLFW_FULLSCREEN) { - NSPoint globalPoint = NSMakePoint(x, y); + CGPoint globalPoint = CGMakePoint(x, y); CGDisplayMoveCursorToPoint(CGMainDisplayID(), globalPoint); } else