summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-12-24 18:55:43 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-12-24 19:32:10 +0100
commitff0148f86de14ef658cbcaa9382fcc2a40970acb (patch)
treeb43d4a7a211d949aab43437c795a1e67f29ccd0e /compat
parent01096167ccd013893f36b9b4317500d27210f13e (diff)
compat/check-visible: fix on hidpi
Diffstat (limited to 'compat')
-rw-r--r--compat/check-visible.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/compat/check-visible.cpp b/compat/check-visible.cpp
index 96dba60f..9afdbb76 100644
--- a/compat/check-visible.cpp
+++ b/compat/check-visible.cpp
@@ -24,10 +24,11 @@ void set_is_visible(const QWidget& w, bool force)
timer.start();
- const HWND id = (HWND) w.winId();
+ HWND id = (HWND) w.winId();
const QPoint pt = w.mapToGlobal({ 0, 0 });
+ const QPoint pt2 = w.mapToGlobal({ w.width(), w.height() });
- const int W = w.width(), H = w.height();
+ const int W = pt2.x(), H = pt2.y();
const QPoint points[] =
{