From cdfbe68a9652006b1402b8d851f19b979038b9b3 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 30 Apr 2013 19:40:29 +0200 Subject: [PATCH] Cleanup. --- src/cocoa_window.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index ad64a5cf..493d3721 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -778,7 +778,7 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window, if (!_glfwCreateContext(window, wndconfig, fbconfig)) return GL_FALSE; - [window->nsgl.context setView:[window->ns.object contentView]]; + [window->nsgl.context setView:window->ns.view]; if (wndconfig->monitor) { @@ -786,8 +786,8 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window, return GL_FALSE; _glfwPlatformShowWindow(window); - [[window->ns.object contentView] enterFullScreenMode:wndconfig->monitor->ns.screen - withOptions:nil]; + [window->ns.view enterFullScreenMode:wndconfig->monitor->ns.screen + withOptions:nil]; } NSPoint point = [[NSCursor currentCursor] hotSpot]; @@ -807,7 +807,7 @@ void _glfwPlatformDestroyWindow(_GLFWwindow* window) // Exit full screen after the video restore to avoid a nasty display // flickering during the fade. - [[window->ns.object contentView] exitFullScreenModeWithOptions:nil]; + [window->ns.view exitFullScreenModeWithOptions:nil]; } _glfwDestroyContext(window);