GDK W32: Apply HiDPI scale properly to monitors
authorРуслан Ижбулатов <lrn1986@gmail.com>
Fri, 17 Feb 2017 15:59:32 +0000 (15:59 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Sun, 19 Feb 2017 07:00:17 +0000 (07:00 +0000)
commit1d0fad3d706ff81b841548ed2ad2ec0de513ab80
treec4bec2bc18d3bc34734e983721c87fcf02be1d2a
parent11f81e77f966807da2354c9f592fdb72d19b9d35
GDK W32: Apply HiDPI scale properly to monitors

Previously HiDPI scale was retrieved and applied too late in the initialization
process to affect monitor size and monitor workarea size, but the code that
initializes these sizes *did* try to use the scale, even though it was always
getting scale=1.

To fix this, move the too-late code into monitor enumeration routine.
This also fixes a probable semantic bug where width and height were divided
by scale, again.

Now monitor and workarea should be in application pixels (i.e. divided by scale),
as intended.

https://bugzilla.gnome.org/show_bug.cgi?id=778835
gdk/win32/gdkdisplay-win32.c
gdk/win32/gdkmonitor-win32.c