From: Jason Rumney Date: Thu, 31 May 2007 01:31:39 +0000 (+0000) Subject: * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]: X-Git-Tag: emacs-pretest-23.0.90~8295^2~479 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=40c0013123e83036e0a8594c1005682df8bdab0f;p=emacs.git * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]: Remove redundant loop and allocation. --- diff --git a/src/xterm.c b/src/xterm.c index 724bc2a596e..462de3f32b1 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -1356,14 +1356,10 @@ x_draw_glyph_string_foreground (s) #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;