diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2018-12-24 18:55:43 +0100 | 
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-12-24 19:32:10 +0100 | 
| commit | ff0148f86de14ef658cbcaa9382fcc2a40970acb (patch) | |
| tree | b43d4a7a211d949aab43437c795a1e67f29ccd0e | |
| parent | 01096167ccd013893f36b9b4317500d27210f13e (diff) | |
compat/check-visible: fix on hidpi
| -rw-r--r-- | compat/check-visible.cpp | 5 | 
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[] =      { | 
