# HG changeset patch # User Jason Rumney # Date 1180575099 0 # Node ID ea615c783ad5b16c0ef3a8c97b17d7c546337184 # Parent 525a2082dcb6259552bf9e327e24826b0eed6adf * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]: Remove redundant loop and allocation. diff -r 525a2082dcb6 -r ea615c783ad5 src/xterm.c --- 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;