Mercurial > emacs
diff src/xterm.c @ 90876:ea615c783ad5
* xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
Remove redundant loop and allocation.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Thu, 31 May 2007 01:31:39 +0000 |
parents | 31beec9ee600 |
children | e9f94688a064 |
line wrap: on
line diff
--- a/src/xterm.c Thu May 31 01:24:57 2007 +0000 +++ b/src/xterm.c Thu May 31 01:31:39 2007 +0000 @@ -1356,14 +1356,10 @@ #ifdef USE_FONT_BACKEND else if (enable_font_backend) { - unsigned *code = alloca (sizeof (unsigned) * s->nchars); int boff = s->font_info->baseline_offset; struct font *font = (struct font *) s->font_info; int y; - for (i = 0; i < s->nchars; i++) - code[i] = (s->char2b[i].byte1 << 8) | s->char2b[i].byte2; - if (s->font_info->vertical_centering) boff = VCENTER_BASELINE_OFFSET (s->font, s->f) - boff;