aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2024-10-22 10:33:45 -0400
committerEli Zaretskii2024-10-22 10:33:45 -0400
commit4182dfb7e844bcc7148a3d7f1084cef6982b36d9 (patch)
tree7bd08819ef35815c6f72b459dd67896eeb6ddd26
parent560260a631489576e99caedda3233670f2fcd66c (diff)
downloademacs-4182dfb7e844bcc7148a3d7f1084cef6982b36d9.tar.gz
emacs-4182dfb7e844bcc7148a3d7f1084cef6982b36d9.zip
; Clarify a comment in dispnew.c
-rw-r--r--src/dispnew.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 200ffaaca21..9caeb9d1694 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -1176,9 +1176,12 @@ line_hash_code (struct frame *f, struct glyph_row *row)
1176 { 1176 {
1177 int c = glyph->u.ch; 1177 int c = glyph->u.ch;
1178 int face_id = glyph->face_id; 1178 int face_id = glyph->face_id;
1179 /* Struct frame can move with igc, and so on. But we need 1179 /* A given row of a frame glyph matrix could have glyphs
1180 something that takes different frames into account. Use the 1180 from more than one frame, if child frames are displayed.
1181 face_cache pointer for that which is malloc'd. */ 1181 Since face_id of a face depends on the frame (it's an
1182 index into the frame's face cache), we need the hash
1183 value to include something specific to the frame, and we
1184 use the frame cache's address for that purpose. */
1182 if (glyph->frame && glyph->frame != f) 1185 if (glyph->frame && glyph->frame != f)
1183 face_id += (ptrdiff_t) glyph->frame->face_cache; 1186 face_id += (ptrdiff_t) glyph->frame->face_cache;
1184 if (FRAME_MUST_WRITE_SPACES (f)) 1187 if (FRAME_MUST_WRITE_SPACES (f))