Correct initial window size with highDPI
Use the scaling factor when calculating the initial size of the platform window. Change-Id: Ie21f0da14e32ac437efbc304a3fd9722a7f8615e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
f480196f1b
commit
22138f5907
@ -60,7 +60,7 @@ QPlatformWindow::QPlatformWindow(QWindow *window)
|
||||
, d_ptr(new QPlatformWindowPrivate)
|
||||
{
|
||||
Q_D(QPlatformWindow);
|
||||
d->rect = window->geometry();
|
||||
d->rect = QHighDpi::toNativePixels(window->geometry(), window);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
x
Reference in New Issue
Block a user