mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 13:04:35 +00:00
Cleanup
This commit is contained in:
parent
e7bb03d8e7
commit
a9b9c4cc33
@ -662,10 +662,10 @@ static const NSRange kEmptyRange = { NSNotFound, 0 };
|
|||||||
- (NSRect)firstRectForCharacterRange:(NSRange)range
|
- (NSRect)firstRectForCharacterRange:(NSRange)range
|
||||||
actualRange:(NSRangePointer)actualRange
|
actualRange:(NSRangePointer)actualRange
|
||||||
{
|
{
|
||||||
int x, y;
|
int xpos, ypos;
|
||||||
_glfwPlatformGetWindowPos(window, &x, &y);
|
_glfwPlatformGetWindowPos(window, &xpos, &ypos);
|
||||||
const NSRect contentRect = [window->ns.view frame];
|
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
|
- (void)insertText:(id)string replacementRange:(NSRange)replacementRange
|
||||||
|
Loading…
Reference in New Issue
Block a user