diff options
author | corvid <corvid@lavabit.com> | 2010-11-24 19:26:45 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2010-11-24 19:26:45 +0000 |
commit | 58cb0cbc32a4e464d7f2601a872cc308bf5dd45b (patch) | |
tree | fc2519fe9164a6f4eaaa1df1f33ef08a76e174ae /dw/fltkviewbase.cc | |
parent | 9ca5a62164a183247bb01b63456144f453349c33 (diff) |
trim some spaces
Diffstat (limited to 'dw/fltkviewbase.cc')
-rw-r--r-- | dw/fltkviewbase.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dw/fltkviewbase.cc b/dw/fltkviewbase.cc index 373e5454..cab22cf4 100644 --- a/dw/fltkviewbase.cc +++ b/dw/fltkviewbase.cc @@ -422,7 +422,7 @@ void FltkViewBase::drawRectangle (core::style::Color *color, int x2 = translateCanvasXToViewX (x + width); int y2 = translateCanvasYToViewY (y + height); - // We only support rectangles with line width 1px, so we clip with + // We only support rectangles with line width 1px, so we clip with // a rectangle 1px wider and higher than what we actually expose. // This is only really necessary for non-filled rectangles. clipPoint (&x1, &y1, 1); @@ -554,7 +554,7 @@ void FltkWidgetView::drawText (core::style::Font *font, while (next < len) { next = theLayout->nextGlyph(text, curr); drawtext(text + curr, next - curr, viewX, viewY); - viewX += font->letterSpacing + + viewX += font->letterSpacing + (int)getwidth(text + curr,next - curr); curr = next; } |