aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LineMarker.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2012-03-01 10:12:25 +1100
committernyamatongwe <unknown>2012-03-01 10:12:25 +1100
commitc5a0e5e7516b4fb3263d52abefe6e38fa9f1e094 (patch)
tree8e2854a15d9ffbda21518f54ecd6e35a485591fb /src/LineMarker.cxx
parente3fc747b2c8c970566d19f11777897c153d86629 (diff)
downloadscintilla-mirror-c5a0e5e7516b4fb3263d52abefe6e38fa9f1e094.tar.gz
Bug #3494492. Change aveCharWidth in FontMeasurements to actually store
fractional width. This change complements change set 3994. Make WidthText() and AverageCharWidth() actually return fractional widths under Direct2D. From Marko Njezic.
Diffstat (limited to 'src/LineMarker.cxx')
-rw-r--r--src/LineMarker.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LineMarker.cxx b/src/LineMarker.cxx
index 267ea18f4..99e83265e 100644
--- a/src/LineMarker.cxx
+++ b/src/LineMarker.cxx
@@ -338,7 +338,7 @@ void LineMarker::Draw(Surface *surface, PRectangle &rcWhole, Font &fontForCharac
} else if (markType >= SC_MARK_CHARACTER) {
char character[1];
character[0] = static_cast<char>(markType - SC_MARK_CHARACTER);
- int width = surface->WidthText(fontForCharacter, character, 1);
+ XYPOSITION width = surface->WidthText(fontForCharacter, character, 1);
rc.left += (rc.Width() - width) / 2;
rc.right = rc.left + width;
surface->DrawTextClipped(rc, fontForCharacter, rc.bottom - 2,