From 6af21a0ecb134a6cdeb1e9083b5c5064b5351bff Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 16 Apr 2013 13:49:03 +1000 Subject: Add indicator INDIC_COMPOSITIONTHICK, a thick low underline, to mimic an appearance used for Asian language input composition. --- src/Indicator.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/Indicator.cxx b/src/Indicator.cxx index da75cbb85..ac7435156 100644 --- a/src/Indicator.cxx +++ b/src/Indicator.cxx @@ -152,6 +152,9 @@ void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &r surface->FillRectangle(rcDot, fore); x += 2; } + } else if (style == INDIC_COMPOSITIONTHICK) { + PRectangle rcComposition(rc.left+1, rcLine.bottom-2, rc.right-1, rcLine.bottom); + surface->FillRectangle(rcComposition, fore); } else { // Either INDIC_PLAIN or unknown surface->MoveTo(rc.left, ymid); surface->LineTo(rc.right, ymid); -- cgit v1.2.3