From 1ea66b9033212974f861406c1505547ef2280d92 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 7 Dec 2015 21:17:03 +0100 Subject: [PATCH] Cleanup --- src/cocoa_window.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 1d4ce2f8..f28fe093 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -69,8 +69,7 @@ static void centerCursor(_GLFWwindow *window) // static float transformY(float y) { - const float height = CGDisplayBounds(CGMainDisplayID()).size.height; - return height - y; + return CGDisplayBounds(CGMainDisplayID()).size.height - y; } // Enter full screen mode