[PATCH 4/7 resend] wineconsole: Pass font size information to the server
Hugh McMaster
hugh.mcmaster at outlook.com
Mon Oct 26 01:42:16 CDT 2015
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
programs/wineconsole/wineconsole.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/programs/wineconsole/wineconsole.c b/programs/wineconsole/wineconsole.c
index e1ee55b..2e0c4e1 100644
--- a/programs/wineconsole/wineconsole.c
+++ b/programs/wineconsole/wineconsole.c
@@ -669,6 +669,17 @@ 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;
+ if (!ret) goto error;
+
/* filling data->curcfg from cfg */
switch ((*backend)(data))
{
--
1.9.1
More information about the wine-patches
mailing list