diff options
author | Jan Holesovsky <kendy@collabora.com> | 2013-12-20 19:33:03 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2013-12-20 19:45:38 +0100 |
commit | 8fb0aff43cc0f7d25536bb5c7382dd54970fce36 (patch) | |
tree | d3e3b01d406c96c179d211b0f752619bb4e987f3 /vcl | |
parent | c63324e0fdcfcaa21f48bdbae289954eee5922aa (diff) |
hidpi: Let's be brave & always paint odd heights with Hi-DPI ;-)
Change-Id: Ib374d5636a296663c8dde71827f1bca96f545e51
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/outdev3.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx index ce5a9e66c7d7..3feb9bfa353b 100644 --- a/vcl/source/gdi/outdev3.cxx +++ b/vcl/source/gdi/outdev3.cxx @@ -5309,13 +5309,13 @@ void OutputDevice::DrawWaveLine( const Point& rStartPos, const Point& rEndPos, if (mnDPIScaleFactor > 1) { - nStartY++; //Shift down an additional pixel to create more visual separation. nWaveHeight *= mnDPIScaleFactor; - //5 pixels looks better than 6. - if (mnDPIScaleFactor == 2 && nWaveHeight == 6) + // odd heights look better than even + if (mnDPIScaleFactor % 2 == 0) { - nWaveHeight = 5; + nStartY++; // Shift down an additional pixel to create more visual separation. + nWaveHeight--; } } } |