From c83c76b2a0d3dc77268aedc28a23e431ce45f3f5 Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 15 Jul 2004 02:44:30 +0000 Subject: [PATCH] (mdraw_glyph_list): Fix previous change. --- src/draw.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/draw.c b/src/draw.c index 6ddfc1e..1949c77 100644 --- a/src/draw.c +++ b/src/draw.c @@ -2672,8 +2672,6 @@ mdraw_glyph_list (MFrame *frame, MText *mt, int from, int to, { pad_width = 0; info[-1].x += g->width; - info[-1].this.x += g->width; - info[-1].this.width += g->width; info[-1].logical_width += g->width; } continue; @@ -2685,11 +2683,11 @@ mdraw_glyph_list (MFrame *frame, MText *mt, int from, int to, info->glyph_code = g->code; info->x = g->xoff + pad_width; info->y = g->yoff; - info->this.x = g->lbearing + pad_width; + info->this.x = g->lbearing; info->this.y = - g->ascent; info->this.height = g->ascent + g->descent; - info->this.width = g->rbearing - g->lbearing + pad_width; - info->logical_width = g->width; + info->this.width = g->rbearing - g->lbearing; + info->logical_width = g->width + pad_width; if (g->rface->rfont) info->font = &g->rface->rfont->font; else -- 1.7.10.4