Hugh McMaster : wineconsole: Pass font size information to wineserver.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 2 09:47:15 CST 2015


Module: wine
Branch: master
Commit: 313e064a44e4ce425ae5c5ea00dccd13ea890e88
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=313e064a44e4ce425ae5c5ea00dccd13ea890e88

Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date:   Thu Oct 29 23:17:19 2015 +1100

wineconsole: Pass font size information to wineserver.

Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/wineconsole/wineconsole.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/programs/wineconsole/wineconsole.c b/programs/wineconsole/wineconsole.c
index eb07f6b..7a89eeb 100644
--- a/programs/wineconsole/wineconsole.c
+++ b/programs/wineconsole/wineconsole.c
@@ -425,6 +425,15 @@ void     WINECON_SetConfig(struct inner_data* data, const struct config_data* cf
         data->curcfg.cell_height != cfg->cell_height || data->curcfg.font_weight != cfg->font_weight)
     {
         data->fnSetFont(data, cfg->face_name, cfg->cell_height, cfg->font_weight);
+        SERVER_START_REQ(set_console_output_info)
+        {
+            req->handle = wine_server_obj_handle( data->hConOut );
+            req->mask = SET_CONSOLE_OUTPUT_INFO_FONT;
+            req->font_width = cfg->cell_width;
+            req->font_height = cfg->cell_height;
+            wine_server_call( req );
+        }
+        SERVER_END_REQ;
     }
     if (data->curcfg.def_attr != cfg->def_attr)
     {




More information about the wine-cvs mailing list