Commit dd42b31a authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(adjust_glyph_matrix): In the optimization for

windows whose height has changed, use the new window height
to compute which rows to invalidate.
parent 9e5a7f2a
2001-07-23 Gerd Moellmann <gerd@gnu.org>
* dispnew.c (adjust_glyph_matrix): In the optimization for
windows whose height has changed, use the new window height
to compute which rows to invalidate.
* editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
(MAX_10_EXP): New macro.
(Fformat): Use it.
......
......@@ -797,14 +797,16 @@ adjust_glyph_matrix (w, matrix, x, y, dim)
&& matrix->window_top_y == XFASTINT (w->top)
&& matrix->window_width == window_width)
{
i = 0;
while (matrix->rows[i].enabled_p
&& (MATRIX_ROW_BOTTOM_Y (matrix->rows + i)
< matrix->window_height))
++i;
/* Find the last row in the window. */
for (i = 0; i < matrix->nrows && matrix->rows[i].enabled_p; ++i)
if (MATRIX_ROW_BOTTOM_Y (matrix->rows + i) >= window_height)
{
++i;
break;
}
/* Window end is invalid, if inside of the rows that
are invalidated. */
are invalidated below. */
if (INTEGERP (w->window_end_vpos)
&& XFASTINT (w->window_end_vpos) >= i)
w->window_end_valid = Qnil;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment