From 58cb0cbc32a4e464d7f2601a872cc308bf5dd45b Mon Sep 17 00:00:00 2001 From: corvid Date: Wed, 24 Nov 2010 19:26:45 +0000 Subject: trim some spaces --- dw/fltkviewbase.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dw/fltkviewbase.cc') 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; } -- cgit v1.2.3