diff options
author | Gerald Combs <gerald@wireshark.org> | 2017-08-30 12:16:51 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2017-08-30 20:54:05 +0000 |
commit | 8d13f14f958b9ee00b59fd869bd1630f76e6fa65 (patch) | |
tree | 5107fbb38428bc1134328f9e262b1a6f45382ef7 /ui | |
parent | 541817f63ca3e57bc8b8302602c42d6b745d73ef (diff) |
Qt: Temporarily disable DP scaling on non-macOS systems.
Enable device pixel scaling in QCustomPlot only on macOS. Blind attempt
at diagnosing / fixing bug 14012.
Change-Id: I95e38eaa072d69aef0fe1d642951603800c3a280
Ping-Bug: 14012
Reviewed-on: https://code.wireshark.org/review/23314
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/widgets/qcustomplot.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/qt/widgets/qcustomplot.cpp b/ui/qt/widgets/qcustomplot.cpp index 72fb58747d..c9fbffc9bd 100644 --- a/ui/qt/widgets/qcustomplot.cpp +++ b/ui/qt/widgets/qcustomplot.cpp @@ -29,7 +29,11 @@ // Set to nonzero to use device pixel scaling. Uncommenting the debug rects // at the bottom of QCPAxisPainterPrivate::draw can be helpful for testing. +#if Q_OS_MAC #define WS_ENABLE_DP_RATIO 1 +#else +#define WS_ENABLE_DP_RATIO 0 +#endif //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////// QCPPainter |