Hugh McMaster : conhost: Save default font's pitch and family on first run.
Alexandre Julliard
julliard at winehq.org
Fri Apr 22 14:46:04 CDT 2022
Module: wine
Branch: master
Commit: a2bb60e62c0e7c0f0733bd2d0c66ba81d91fe19b
URL: https://source.winehq.org/git/wine.git/?a=commit;h=a2bb60e62c0e7c0f0733bd2d0c66ba81d91fe19b
Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date: Wed Apr 20 23:18:03 2022 +1000
conhost: Save default font's pitch and family on first run.
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/conhost/window.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/programs/conhost/window.c b/programs/conhost/window.c
index fb02ef9fd94..c115e42a282 100644
--- a/programs/conhost/window.c
+++ b/programs/conhost/window.c
@@ -823,6 +823,7 @@ static int WINAPI get_first_font_sub_enum( const LOGFONTW *lf, const TEXTMETRICW
load_config( fc->console->window->config_key, &config );
config.cell_width = fc->console->active->font.width;
config.cell_height = fc->console->active->font.height;
+ config.font_pitch_family = fc->console->active->font.pitch_family;
memcpy( config.face_name, fc->console->active->font.face_name,
fc->console->active->font.face_len * sizeof(WCHAR) );
config.face_name[fc->console->active->font.face_len] = 0;
More information about the wine-cvs
mailing list