summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXFont.c
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/tkMacOSXFont.c')
-rw-r--r--macosx/tkMacOSXFont.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/macosx/tkMacOSXFont.c b/macosx/tkMacOSXFont.c
index 78e245a..d3e0e41 100644
--- a/macosx/tkMacOSXFont.c
+++ b/macosx/tkMacOSXFont.c
@@ -1032,12 +1032,8 @@ TkpDrawCharsInContext(
* whole (not just the range) string when
* drawing. */
{
- int widthUntilStart;
-
- TkpMeasureCharsInContext(tkfont, source, numBytes, 0, rangeStart,
- -1, 0, &widthUntilStart);
DrawCharsInContext(display, drawable, gc, tkfont, source, numBytes,
- rangeStart, rangeLength, x-widthUntilStart, y, 0.0);
+ rangeStart, rangeLength, x, y, 0.0);
}
static void