[PATCH v4 0/1] MR1934: conhost.exe: Initialize colop_map when creating an alternate screen buffer.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54287 Signed-off-by: Eric Pouech <eric.pouech(a)gmail.com> -- v4: conhost.exe: Initialize color_map when creating an alternate screen buffer. https://gitlab.winehq.org/wine/wine/-/merge_requests/1934
From: Eric Pouech <eric.pouech(a)gmail.com> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54287 Signed-off-by: Eric Pouech <eric.pouech(a)gmail.com> --- programs/conhost/conhost.c | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/conhost/conhost.c b/programs/conhost/conhost.c index 769f998f404..fb20ed79555 100644 --- a/programs/conhost/conhost.c +++ b/programs/conhost/conhost.c @@ -96,6 +96,7 @@ static struct screen_buffer *create_screen_buffer( struct console *console, int screen_buffer->attr = console->active->attr; screen_buffer->popup_attr = console->active->attr; screen_buffer->font = console->active->font; + memcpy( screen_buffer->color_map, console->active->color_map, sizeof(console->active->color_map) ); if (screen_buffer->font.face_len) { -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/1934
On Wed Jan 11 13:06:28 2023 +0000, eric pouech wrote:
no evidence I'm aware of, but since we're already inheriting all the other attributes (eg. font name) from the active screen buffer, I did the same. (will push an update for the typo, thx for looking into it) Sounds reasonable to me.
I’d expect the colours to be copied to the new screen buffer, since they come from the same conhost process (which loaded them from the registry). -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1934#note_20674
participants (3)
-
Eric Pouech -
eric pouech (@epo) -
Hugh McMaster (@hmc)