From a9b9c4cc33b17321936c3ac5f2daf4d36be895e1 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Fri, 26 Feb 2016 10:47:29 +0100 Subject: [PATCH] Cleanup --- src/cocoa_window.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index c53ec24a..7d3f0ed8 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -662,10 +662,10 @@ static const NSRange kEmptyRange = { NSNotFound, 0 }; - (NSRect)firstRectForCharacterRange:(NSRange)range actualRange:(NSRangePointer)actualRange { - int x, y; - _glfwPlatformGetWindowPos(window, &x, &y); + int xpos, ypos; + _glfwPlatformGetWindowPos(window, &xpos, &ypos); const NSRect contentRect = [window->ns.view frame]; - return NSMakeRect(x, transformY(y+contentRect.size.height), 0, 0); + return NSMakeRect(xpos, transformY(ypos + contentRect.size.height), 0.0, 0.0); } - (void)insertText:(id)string replacementRange:(NSRange)replacementRange