[PATCH 3/3] conhost: Copy Default Attributes (colors) to the new screen buffer

Hugh McMaster hugh.mcmaster at outlook.com
Fri Jul 9 07:40:40 CDT 2021


CreateConsoleScreenBuffer() copies the Default Attributes (colors)
to the new screen buffer when called.

Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
 programs/conhost/conhost.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/programs/conhost/conhost.c b/programs/conhost/conhost.c
index e43e8678ea1..bf81a093a73 100644
--- a/programs/conhost/conhost.c
+++ b/programs/conhost/conhost.c
@@ -95,6 +95,7 @@ static struct screen_buffer *create_screen_buffer( struct console *console, int
         screen_buffer->max_height  = console->active->max_height;
         screen_buffer->win.right   = console->active->win.right  - console->active->win.left;
         screen_buffer->win.bottom  = console->active->win.bottom - console->active->win.top;
+        screen_buffer->attr        = console->active->attr;
         screen_buffer->popup_attr  = console->active->popup_attr;
         screen_buffer->font.width  = console->active->font.width;
         screen_buffer->font.height = console->active->font.height;
-- 
2.32.0




More information about the wine-devel mailing list