diff options
author | Gerald Combs <gerald@wireshark.org> | 2018-05-09 11:46:56 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2018-05-09 20:02:34 +0000 |
commit | 23e1cde5e7489bf662fd9e8bb2555085b9845871 (patch) | |
tree | 75a868f5b4acc746efdeb719cf5998120910c408 /wireshark-qt.cpp | |
parent | e76ca2d3cb005d9276c953a14e63523a21cdb8dc (diff) |
Windows: Make sure native dialogs handle HiDPI.
Enable per-monitor v2 DPI awareness before displaying native file
dialogs so that they will render correctly on HiDPI displays.
Add some notes about DPI awareness in our manifest and in
wireshark-qt.cpp.
Remove win32_get_ofnsize while we're here.
Change-Id: Ic553fdeea0c05020c3a7ff06f648692cb814b3eb
Reviewed-on: https://code.wireshark.org/review/27435
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'wireshark-qt.cpp')
-rw-r--r-- | wireshark-qt.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wireshark-qt.cpp b/wireshark-qt.cpp index 7b8d48ebad..4b595b0ebc 100644 --- a/wireshark-qt.cpp +++ b/wireshark-qt.cpp @@ -514,6 +514,8 @@ int main(int argc, char *qt_argv[]) // one case on X11 and we don't yet support Android. // We do the equivalent on macOS by setting NSHighResolutionCapable // in Info.plist. + // Note that this enables Windows 8.1-style Per-monitor DPI + // awareness but not Windows 10-style Per-monitor v2 awareness. // http://doc.qt.io/qt-5/scalability.html // http://doc.qt.io/qt-5/highdpi.html // https://bugreports.qt.io/browse/QTBUG-53022 - The device pixel ratio is pretty much bogus on Windows. |