mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 799900 - [HiDPI] account for device-pixel scaling for IME window position. r=smichaud
This commit is contained in:
parent
daebf6cedf
commit
b1350b9c25
@ -2594,7 +2594,7 @@ IMEInputHandler::FirstRectForCharacterRange(NSRange& aRange)
|
||||
if (!rootWindow || !rootView) {
|
||||
return rect;
|
||||
}
|
||||
nsCocoaUtils::GeckoRectToNSRect(r, rect);
|
||||
rect = nsCocoaUtils::DevPixelsToCocoaPoints(r, mWidget->GetDefaultScale());
|
||||
rect = [rootView convertRect:rect toView:nil];
|
||||
rect.origin = [rootWindow convertBaseToScreen:rect.origin];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user