From 842e530ec34aa9aa1f563f685bb34b7260c00c74 Mon Sep 17 00:00:00 2001 From: Hualet Wang Date: Mon, 6 Nov 2017 20:40:58 +0800 Subject: [PATCH] fix: positioned at wrong place Dual monitors scaling in Qt way: no scaling on the screen position. Change-Id: I7588e4d246d179f65fd3e86c7f20b3c3abaccac5 --- frame/dbus/dbusdisplay.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/frame/dbus/dbusdisplay.h b/frame/dbus/dbusdisplay.h index 63566bfa5..b9d1b7c1f 100644 --- a/frame/dbus/dbusdisplay.h +++ b/frame/dbus/dbusdisplay.h @@ -112,8 +112,6 @@ public: { const qreal scale = qApp->devicePixelRatio(); DisplayRect dr = qvariant_cast< DisplayRect >(property("PrimaryRect")); - dr.x = qreal(dr.x) / scale; - dr.y = qreal(dr.y) / scale; dr.width = qreal(dr.width) / scale; dr.height = qreal(dr.height) / scale;