[PATCH 1/2] conhost: Remove duplicate lines from current_config()

Hugh McMaster hugh.mcmaster at outlook.com
Mon Aug 2 07:20:20 CDT 2021


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

diff --git a/programs/conhost/window.c b/programs/conhost/window.c
index 92970b44f0e..3af80383958 100644
--- a/programs/conhost/window.c
+++ b/programs/conhost/window.c
@@ -1925,8 +1925,6 @@ static void current_config( struct console *console, struct console_config *conf
     config->popup_attr = console->active->popup_attr;
     memcpy( config->color_map, console->active->color_map, sizeof(config->color_map) );
 
-    config->win_height  = console->active->win.bottom - console->active->win.top + 1;
-    config->win_width   = console->active->win.right - console->active->win.left + 1;
     config->cell_width  = console->active->font.width;
     config->cell_height = console->active->font.height;
     config->font_weight = console->active->font.weight;
-- 
2.32.0




More information about the wine-devel mailing list