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

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


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

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

diff --git a/programs/conhost/conhost.c b/programs/conhost/conhost.c
index adcfe00d7e9..e43e8678ea1 100644
--- a/programs/conhost/conhost.c
+++ b/programs/conhost/conhost.c
@@ -86,7 +86,6 @@ static struct screen_buffer *create_screen_buffer( struct console *console, int
     screen_buffer->width          = width;
     screen_buffer->height         = height;
     screen_buffer->attr           = 0x07;
-    screen_buffer->popup_attr     = 0xf5;
     screen_buffer->font.weight    = FW_NORMAL;
     screen_buffer->font.pitch_family = FIXED_PITCH | FF_DONTCARE;
 
@@ -96,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->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