diff options
| author | Gerd Moellmann | 2000-12-06 15:46:27 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-12-06 15:46:27 +0000 |
| commit | d1c98adf1586e3974d643509f8966081a7282ae4 (patch) | |
| tree | bc85f10562a9b227d969930d1221e41209416e7c /src | |
| parent | e1d0538761aceddeffd42d482d60b5f09eab4da0 (diff) | |
| download | emacs-d1c98adf1586e3974d643509f8966081a7282ae4.tar.gz emacs-d1c98adf1586e3974d643509f8966081a7282ae4.zip | |
(adjust_glyph_matrix): Don't reuse a window's current
matrix if the window's left position has changed; we need to
redraw it in this case.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispnew.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index f16933b69b3..30db7dda298 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -550,6 +550,7 @@ adjust_glyph_matrix (w, matrix, x, y, dim) | |||
| 550 | if (!marginal_areas_changed_p | 550 | if (!marginal_areas_changed_p |
| 551 | && !fonts_changed_p | 551 | && !fonts_changed_p |
| 552 | && !header_line_changed_p | 552 | && !header_line_changed_p |
| 553 | && matrix->window_left_x == XFASTINT (w->left) | ||
| 553 | && matrix->window_top_y == XFASTINT (w->top) | 554 | && matrix->window_top_y == XFASTINT (w->top) |
| 554 | && matrix->window_height == window_height | 555 | && matrix->window_height == window_height |
| 555 | && matrix->window_vscroll == w->vscroll | 556 | && matrix->window_vscroll == w->vscroll |
| @@ -686,6 +687,7 @@ adjust_glyph_matrix (w, matrix, x, y, dim) | |||
| 686 | upper window). Invalidate all rows that are no longer part | 687 | upper window). Invalidate all rows that are no longer part |
| 687 | of the window. */ | 688 | of the window. */ |
| 688 | if (!marginal_areas_changed_p | 689 | if (!marginal_areas_changed_p |
| 690 | && matrix->window_left_x == XFASTINT (w->left) | ||
| 689 | && matrix->window_top_y == XFASTINT (w->top) | 691 | && matrix->window_top_y == XFASTINT (w->top) |
| 690 | && matrix->window_width == window_box_width (w, -1)) | 692 | && matrix->window_width == window_box_width (w, -1)) |
| 691 | { | 693 | { |
| @@ -721,6 +723,7 @@ adjust_glyph_matrix (w, matrix, x, y, dim) | |||
| 721 | was last adjusted. This is used to optimize redisplay above. */ | 723 | was last adjusted. This is used to optimize redisplay above. */ |
| 722 | if (w) | 724 | if (w) |
| 723 | { | 725 | { |
| 726 | matrix->window_left_x = XFASTINT (w->left); | ||
| 724 | matrix->window_top_y = XFASTINT (w->top); | 727 | matrix->window_top_y = XFASTINT (w->top); |
| 725 | matrix->window_height = window_height; | 728 | matrix->window_height = window_height; |
| 726 | matrix->window_width = window_width; | 729 | matrix->window_width = window_width; |