comparison src/dispnew.c @ 37098:e293840c7332

(adjust_glyph_matrix): Don't try to reuse the current matrix of a window when the header line changes, when new rows are allocated, or when the width changes.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 30 Mar 2001 14:07:20 +0000
parents 7526acd3385c
children db78c8220a21
comparison
equal deleted inserted replaced
37097:b095952a8678 37098:e293840c7332
788 788
789 /* Optimize the case that only the height has changed (C-x 2, 789 /* Optimize the case that only the height has changed (C-x 2,
790 upper window). Invalidate all rows that are no longer part 790 upper window). Invalidate all rows that are no longer part
791 of the window. */ 791 of the window. */
792 if (!marginal_areas_changed_p 792 if (!marginal_areas_changed_p
793 && !header_line_changed_p
794 && new_rows == 0
795 && dim.width == matrix->matrix_w
793 && matrix->window_left_x == XFASTINT (w->left) 796 && matrix->window_left_x == XFASTINT (w->left)
794 && matrix->window_top_y == XFASTINT (w->top) 797 && matrix->window_top_y == XFASTINT (w->top)
795 && matrix->window_width == window_box_width (w, -1)) 798 && matrix->window_width == window_width)
796 { 799 {
797 i = 0; 800 i = 0;
798 while (matrix->rows[i].enabled_p 801 while (matrix->rows[i].enabled_p
799 && (MATRIX_ROW_BOTTOM_Y (matrix->rows + i) 802 && (MATRIX_ROW_BOTTOM_Y (matrix->rows + i)
800 < matrix->window_height)) 803 < matrix->window_height))