[PATCH 2/4] wineconsole: Pass font information to the server

Hugh McMaster hugh.mcmaster at outlook.com
Tue Oct 20 19:43:54 CDT 2015


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

diff --git a/programs/wineconsole/wineconsole.c b/programs/wineconsole/wineconsole.c
index e1ee55b..0c065bd 100644
--- a/programs/wineconsole/wineconsole.c
+++ b/programs/wineconsole/wineconsole.c
@@ -669,6 +669,16 @@ static struct inner_data* WINECON_Init(HINSTANCE hInst, DWORD pid, LPCWSTR appna
     if (!ret) goto error;
     WINE_TRACE("using hConOut %p\n", data->hConOut);
 
+    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;
+        ret = !wine_server_call_err( req );
+    }
+    SERVER_END_REQ;
+
     /* filling data->curcfg from cfg */
     switch ((*backend)(data))
     {
-- 
1.9.1




More information about the wine-patches mailing list