diff options
| author | Jason Rumney | 2007-05-31 01:31:39 +0000 |
|---|---|---|
| committer | Jason Rumney | 2007-05-31 01:31:39 +0000 |
| commit | 40c0013123e83036e0a8594c1005682df8bdab0f (patch) | |
| tree | d7e9b892664be338cdc7798b4f594779305e0d23 /src | |
| parent | d85e804c722445b64fba9e84eecd38b9cb699ea9 (diff) | |
| download | emacs-40c0013123e83036e0a8594c1005682df8bdab0f.tar.gz emacs-40c0013123e83036e0a8594c1005682df8bdab0f.zip | |
* xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
Remove redundant loop and allocation.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 4 |
1 files changed, 0 insertions, 4 deletions
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) | |||
| 1356 | #ifdef USE_FONT_BACKEND | 1356 | #ifdef USE_FONT_BACKEND |
| 1357 | else if (enable_font_backend) | 1357 | else if (enable_font_backend) |
| 1358 | { | 1358 | { |
| 1359 | unsigned *code = alloca (sizeof (unsigned) * s->nchars); | ||
| 1360 | int boff = s->font_info->baseline_offset; | 1359 | int boff = s->font_info->baseline_offset; |
| 1361 | struct font *font = (struct font *) s->font_info; | 1360 | struct font *font = (struct font *) s->font_info; |
| 1362 | int y; | 1361 | int y; |
| 1363 | 1362 | ||
| 1364 | for (i = 0; i < s->nchars; i++) | ||
| 1365 | code[i] = (s->char2b[i].byte1 << 8) | s->char2b[i].byte2; | ||
| 1366 | |||
| 1367 | if (s->font_info->vertical_centering) | 1363 | if (s->font_info->vertical_centering) |
| 1368 | boff = VCENTER_BASELINE_OFFSET (s->font, s->f) - boff; | 1364 | boff = VCENTER_BASELINE_OFFSET (s->font, s->f) - boff; |
| 1369 | 1365 | ||