Mercurial > emacs
comparison src/xterm.c @ 90769:429fb762384a
(x_draw_composite_glyph_string_foreground): Don't
increment s->gidx for TAB.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 20 Feb 2007 11:02:20 +0000 |
parents | 52a7f3f50b89 |
children | 4a4222f7a38d |
comparison
equal
deleted
inserted
replaced
90768:4ef338cf4478 | 90769:429fb762384a |
---|---|
1499 if (from < i) | 1499 if (from < i) |
1500 font->driver->draw (s, from, i, x, y, 0); | 1500 font->driver->draw (s, from, i, x, y, 0); |
1501 } | 1501 } |
1502 else | 1502 else |
1503 { | 1503 { |
1504 for (i = 0; i < s->nchars; i++, ++s->gidx) | 1504 for (i = 0; i < s->nchars; i++) |
1505 if (COMPOSITION_GLYPH (s->cmp, s->gidx) != '\t') | 1505 if (COMPOSITION_GLYPH (s->cmp, s->gidx) != '\t') |
1506 { | 1506 { |
1507 int xx = x + s->cmp->offsets[s->gidx * 2]; | 1507 int xx = x + s->cmp->offsets[s->gidx * 2]; |
1508 int yy = y - s->cmp->offsets[s->gidx * 2 + 1]; | 1508 int yy = y - s->cmp->offsets[s->gidx * 2 + 1]; |
1509 | 1509 |
1510 font->driver->draw (s, s->gidx, s->gidx + 1, xx, yy, 0); | 1510 font->driver->draw (s, s->gidx, s->gidx + 1, xx, yy, 0); |
1511 if (s->face->overstrike) | 1511 if (s->face->overstrike) |
1512 font->driver->draw (s, s->gidx, s->gidx + 1, xx + 1, yy, 0); | 1512 font->driver->draw (s, s->gidx, s->gidx + 1, xx + 1, yy, 0); |
1513 s->gidx++; | |
1513 } | 1514 } |
1514 } | 1515 } |
1515 } | 1516 } |
1516 #endif /* USE_FONT_BACKEND */ | 1517 #endif /* USE_FONT_BACKEND */ |
1517 else | 1518 else |