mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fix: positioned at wrong place
Dual monitors scaling in Qt way: no scaling on the screen position. Change-Id: I7588e4d246d179f65fd3e86c7f20b3c3abaccac5
This commit is contained in:
parent
68f2d317d7
commit
842e530ec3
Notes:
Deepin Code Review
2017-11-07 17:14:24 +08:00
Verified+1: Anonymous Coward #1000004 Code-Review+1: 石博文 <sbw@sbw.so> Code-Review+2: Hualet Wang <mr.asianwang@gmail.com> Submitted-by: Hualet Wang <mr.asianwang@gmail.com> Submitted-at: Tue, 07 Nov 2017 17:14:24 +0800 Reviewed-on: https://cr.deepin.io/28037 Project: dde/dde-dock Branch: refs/heads/master
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user