diff options
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--; } } } |