Windows: Fix HiDPI #3414
authorJocelyn Turcotte <jturcotte@woboq.com>
Mon, 11 Jan 2016 14:27:13 +0000 (15:27 +0100)
committerJocelyn Turcotte <jturcotte@woboq.com>
Mon, 11 Jan 2016 14:41:08 +0000 (15:41 +0100)
commit54c2c9ac4e897a5a1ebbdbfa15d94fc452b72ac5
tree1553a6deb35acbf52ba0cf2b81f1caac97712ad7
parentea03f9da132e669b7528d0125a2064be45ada97e
Windows: Fix HiDPI #3414

Use QT_DEVICE_PIXEL_RATIO=auto on Qt<=5.5 to enable automatic
scale factor settings on Windows. Also move the existing
Qt::AA_EnableHighDpiScaling logic to use the equivalent
QT_AUTO_SCREEN_SCALE_FACTOR=1 environment variable just to
keep the 5.5 and >=5.6 code at the same place.
src/gui/application.cpp
src/gui/main.cpp