1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 02:38:52 -05:00
This commit is contained in:
Camilla Berglund 2016-02-26 10:47:29 +01:00
parent e7bb03d8e7
commit a9b9c4cc33

View File

@ -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