aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann1999-08-11 10:47:38 +0000
committerGerd Moellmann1999-08-11 10:47:38 +0000
commita38634ff1fc7d7f62297b949a962ca64236bda4d (patch)
tree9614b18fe9298dfa29a366d6aa32ee22e78a917e
parent0ec0d9c10af49b1a96bfb9ff607d890a29911549 (diff)
downloademacs-a38634ff1fc7d7f62297b949a962ca64236bda4d.tar.gz
emacs-a38634ff1fc7d7f62297b949a962ca64236bda4d.zip
(mirror_make_current): If desired row isn't enabled,
just swap glyphs pointers between current and desired row. (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy desired matrix method string to current matrix.
-rw-r--r--src/dispnew.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 4875f736b99..07eccf05fb4 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -2467,6 +2467,10 @@ build_frame_matrix_from_leaf_window (frame_matrix, w)
2467 2467
2468 /* If rows are in sync, we don't have to copy glyphs because 2468 /* If rows are in sync, we don't have to copy glyphs because
2469 frame and window share glyphs. */ 2469 frame and window share glyphs. */
2470
2471#if GLYPH_DEBUG
2472 strcpy (w->current_matrix->method, w->desired_matrix->method);
2473#endif
2470 } 2474 }
2471 2475
2472 /* Set number of used glyphs in the frame matrix. Since we fill 2476 /* Set number of used glyphs in the frame matrix. Since we fill
@@ -2628,8 +2632,11 @@ mirror_make_current (w, frame_row)
2628 = MATRIX_ROW (w->current_matrix, row); 2632 = MATRIX_ROW (w->current_matrix, row);
2629 struct glyph_row *desired_row 2633 struct glyph_row *desired_row
2630 = MATRIX_ROW (w->desired_matrix, row); 2634 = MATRIX_ROW (w->desired_matrix, row);
2631 2635
2632 assign_row (current_row, desired_row); 2636 if (desired_row->enabled_p)
2637 assign_row (current_row, desired_row);
2638 else
2639 swap_glyph_pointers (desired_row, current_row);
2633 current_row->enabled_p = 1; 2640 current_row->enabled_p = 1;
2634 } 2641 }
2635 } 2642 }