(adjust_glyph_matrix): In the optimization for
authorGerd Moellmann <gerd@gnu.org>
Wed, 8 Aug 2001 11:41:07 +0000 (11:41 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 8 Aug 2001 11:41:07 +0000 (11:41 +0000)
windows whose height has changed, disable partially visible
lines.

src/dispnew.c

index 5e16897..c8700f3 100644 (file)
@@ -801,7 +801,9 @@ adjust_glyph_matrix (w, matrix, x, y, dim)
              for (i = 0; i < matrix->nrows && matrix->rows[i].enabled_p; ++i)
                if (MATRIX_ROW_BOTTOM_Y (matrix->rows + i) >= window_height)
                  {
-                   ++i;
+                   if (MATRIX_ROW_BOTTOM_Y (matrix->rows + i)
+                       == window_height)
+                     ++i;
                    break;
                  }