Fix QHighDpi::fromNative(QRect, QScreen *, QPoint).
Call fromNative() instead of toNative(). Task-number: QTBUG-46615 Change-Id: I1e648a2680126d1f560e71573f7346b053fe676b Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
This commit is contained in:
parent
827420c4c6
commit
cf846d6a8a
@ -162,7 +162,7 @@ inline QRect toNative(const QRect &rect, qreal scaleFactor, const QPoint &origin
|
|||||||
|
|
||||||
inline QRect fromNative(const QRect &rect, const QScreen *screen, const QPoint &screenOrigin)
|
inline QRect fromNative(const QRect &rect, const QScreen *screen, const QPoint &screenOrigin)
|
||||||
{
|
{
|
||||||
return toNative(rect, QHighDpiScaling::factor(screen), screenOrigin);
|
return fromNative(rect, QHighDpiScaling::factor(screen), screenOrigin);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline QRect fromNativeScreenGeometry(const QRect &nativeScreenGeometry, const QScreen *screen)
|
inline QRect fromNativeScreenGeometry(const QRect &nativeScreenGeometry, const QScreen *screen)
|
||||||
|
Loading…
Reference in New Issue
Block a user