1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 08:43:40 -07:00

Remove unneeded workaround from w32console.c

* src/w32console.c (w32con_write_glyphs): Remove unneeded test.
(w32con_clear_end_of_line): Fill in the glyph.frame member.
This commit is contained in:
Eli Zaretskii 2024-10-28 15:43:08 +02:00
parent d3f8ed730f
commit 7aa00fa90d

View file

@ -167,6 +167,7 @@ w32con_clear_end_of_line (struct frame *f, int end)
for (i = 0; i < glyphs_len; i++)
{
memcpy (&glyphs[i], &space_glyph, sizeof (struct glyph));
glyphs[i].frame = f;
}
ceol_initialized = TRUE;
}
@ -330,7 +331,7 @@ w32con_write_glyphs (struct frame *f, register struct glyph *string,
/* Since this is called to deliver the frame glyph matrix to the
glass, some of the glyphs might be from a child frame, which
affects the interpretation of face ID. */
struct frame *face_id_frame = string->frame ? string->frame : f;
struct frame *face_id_frame = string->frame;
int n;
for (n = 1; n < len; ++n)