changeset 1852:7f050e0ef6d6

fix some leftovers from dd9528825b2f
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Fri, 21 Jan 2011 23:54:05 +0100
parents 400a06a83891
children b8aa813dc9c2
files dw/fltkviewbase.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dw/fltkviewbase.cc	Fri Jan 21 23:48:30 2011 +0100
+++ b/dw/fltkviewbase.cc	Fri Jan 21 23:54:05 2011 +0100
@@ -582,7 +582,7 @@
                nb = utf8encode(wcu, chbuf);
 #endif
                fl_font(ff->font, sc_fontsize);
-               fl_draw(chbuf, nb, x() + viewX, y () + viewY);
+               fl_draw(chbuf, nb, viewX, viewY);
                viewX += font->letterSpacing;
                viewX += (int)fl_width(chbuf, nb);
             }
@@ -590,7 +590,7 @@
       } else {
          while (next < len) {
             next = theLayout->nextGlyph(text, curr);
-            fl_draw(text + curr, next - curr, x () + viewX, y () + viewY);
+            fl_draw(text + curr, next - curr, viewX, viewY);
             viewX += font->letterSpacing +
                      (int)fl_width(text + curr,next - curr);
             curr = next;