|Subject:||Re: Questions on glyph matrices used for rendering frame in terminal|
|Date:||Tue, 5 Jul 2022 08:24:19 +0200|
Probably. I don't remember what I thought exactly when I wrote that code. But, a few lines above what you mentioned there is
/* Fill up the frame row with spaces up to the left margin of the
window row. */
fill_up_frame_row_with_spaces (frame_row, window_matrix->matrix_x);
In general, I prefer code that relies on what is known locally, instead of what is known more globally, so to speak. (We have too much of that already in Emacs.) Maybe that was the reason.
In this case, because of the fill_up..., we know locally that the frame row is filled up to matrix_x of the window, so...
It does affect a struct glyph_matrix, indirectly, because a struct glyph_row used by it is memset to zeros.
But no struct glyph is modified by that. Please take a look at clear_glyph_row. Only bookkeeping information is cleared. The struct glyph_row points to struct glyphs, but the glyphs themselves are not changed.
Have you read dispextern.h? There are some comments that might be helpful.
Description: Message signed with OpenPGP
|[Prev in Thread]||Current Thread||[Next in Thread]|