# HG changeset patch # User Kim F. Storm # Date 1147905445 0 # Node ID 102448f41c250d7f9e7903c7dd71618194fd63c4 # Parent d6f5b85d742918a78b8d82b9bde4e2b86ad9b1e7 (display_tool_bar_line): Eliminate x_before variable. diff -r d6f5b85d7429 -r 102448f41c25 src/xdisp.c --- a/src/xdisp.c Wed May 17 22:26:51 2006 +0000 +++ b/src/xdisp.c Wed May 17 22:37:25 2006 +0000 @@ -9491,7 +9491,7 @@ while (it->current_x < max_x) { - int x_before, x, n_glyphs_before, i, nglyphs; + int x, n_glyphs_before, i, nglyphs; struct it it_before; /* Get the next display element. */ @@ -9504,14 +9504,14 @@ } /* Produce glyphs. */ - x_before = it->current_x; - n_glyphs_before = it->glyph_row->used[TEXT_AREA]; + n_glyphs_before = row->used[TEXT_AREA]; it_before = *it; + PRODUCE_GLYPHS (it); nglyphs = row->used[TEXT_AREA] - n_glyphs_before; i = 0; - x = x_before; + x = it_before.current_x; while (i < nglyphs) { struct glyph *glyph = row->glyphs[TEXT_AREA] + n_glyphs_before + i;