summaryrefslogtreecommitdiff
path: root/vcl/source/outdev/textline.cxx
diff options
context:
space:
mode:
authorHeiko Tietze <tietze.heiko@gmail.com>2021-11-11 11:34:08 +0100
committerHeiko Tietze <heiko.tietze@documentfoundation.org>2021-11-12 14:47:06 +0100
commit4141c13da8245b5ed46be3b7034d014d75f433f9 (patch)
tree9723228c9d72c15449f47042777b7271c2df1346 /vcl/source/outdev/textline.cxx
parente9577ef8265ec579066b2daa7de3f1b15044b2b7 (diff)
Resolves tdf#70519 - Make wavy lines depend on zoom factor
Solves accessibility issue of too faint spellchecking indicators Change-Id: Ic5bc9e205981e90c8f4ee12aa52dde723da1e7aa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125038 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'vcl/source/outdev/textline.cxx')
-rw-r--r--vcl/source/outdev/textline.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/source/outdev/textline.cxx b/vcl/source/outdev/textline.cxx
index 0b3ca866b37a..7015d768986c 100644
--- a/vcl/source/outdev/textline.cxx
+++ b/vcl/source/outdev/textline.cxx
@@ -969,7 +969,7 @@ void OutputDevice::DrawTextLine( const Point& rPos, tools::Long nWidth,
mpAlphaVDev->DrawTextLine( rPos, nWidth, eStrikeout, eUnderline, eOverline, bUnderlineAbove );
}
-void OutputDevice::DrawWaveLine(const Point& rStartPos, const Point& rEndPos, tools::Long nLineWidth)
+void OutputDevice::DrawWaveLine(const Point& rStartPos, const Point& rEndPos, tools::Long nLineWidth, tools::Long nWaveHeight)
{
assert(!is_double_buffered_window());
@@ -1008,8 +1008,6 @@ void OutputDevice::DrawWaveLine(const Point& rStartPos, const Point& rEndPos, to
aStartPt.RotateAround(nEndX, nEndY, Degree10(static_cast<sal_Int16>(-fOrientation * 10.0)));
}
- tools::Long nWaveHeight = 3;
-
// Handle HiDPI
float fScaleFactor = GetDPIScaleFactor();
if (fScaleFactor > 1.0f)