aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-07-23 11:33:58 +0000
committerGerd Moellmann2001-07-23 11:33:58 +0000
commitdd42b31ac43a08a15e5fa6e7ada37dbf8f4a05f9 (patch)
tree0f8fb33f0d81ed6a0d80845dd094aaab764f1a97 /src
parent9e5a7f2af4a8fa562257c7353a392f8f307c1565 (diff)
downloademacs-dd42b31ac43a08a15e5fa6e7ada37dbf8f4a05f9.tar.gz
emacs-dd42b31ac43a08a15e5fa6e7ada37dbf8f4a05f9.zip
(adjust_glyph_matrix): In the optimization for
windows whose height has changed, use the new window height to compute which rows to invalidate.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/dispnew.c14
2 files changed, 12 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 1e6c0d1cbf2..790b79e07cd 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
12001-07-23 Gerd Moellmann <gerd@gnu.org> 12001-07-23 Gerd Moellmann <gerd@gnu.org>
2 2
3 * dispnew.c (adjust_glyph_matrix): In the optimization for
4 windows whose height has changed, use the new window height
5 to compute which rows to invalidate.
6
3 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h. 7 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
4 (MAX_10_EXP): New macro. 8 (MAX_10_EXP): New macro.
5 (Fformat): Use it. 9 (Fformat): Use it.
diff --git a/src/dispnew.c b/src/dispnew.c
index 452bd64c12e..afef7909a80 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -797,14 +797,16 @@ adjust_glyph_matrix (w, matrix, x, y, dim)
797 && matrix->window_top_y == XFASTINT (w->top) 797 && matrix->window_top_y == XFASTINT (w->top)
798 && matrix->window_width == window_width) 798 && matrix->window_width == window_width)
799 { 799 {
800 i = 0; 800 /* Find the last row in the window. */
801 while (matrix->rows[i].enabled_p 801 for (i = 0; i < matrix->nrows && matrix->rows[i].enabled_p; ++i)
802 && (MATRIX_ROW_BOTTOM_Y (matrix->rows + i) 802 if (MATRIX_ROW_BOTTOM_Y (matrix->rows + i) >= window_height)
803 < matrix->window_height)) 803 {
804 ++i; 804 ++i;
805 break;
806 }
805 807
806 /* Window end is invalid, if inside of the rows that 808 /* Window end is invalid, if inside of the rows that
807 are invalidated. */ 809 are invalidated below. */
808 if (INTEGERP (w->window_end_vpos) 810 if (INTEGERP (w->window_end_vpos)
809 && XFASTINT (w->window_end_vpos) >= i) 811 && XFASTINT (w->window_end_vpos) >= i)
810 w->window_end_valid = Qnil; 812 w->window_end_valid = Qnil;