From 6e83dbdb61fbbe1c178133e98a83d77bbbfaab64 Mon Sep 17 00:00:00 2001 From: Hugh McMaster Date: Wed, 24 Apr 2013 16:10:06 +1000 Subject: server-console.c --- server/console.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/server/console.c b/server/console.c index 3f90937..f7f5fa8 100644 --- a/server/console.c +++ b/server/console.c @@ -1376,6 +1376,42 @@ static void scroll_console_output( struct screen_buffer *screen_buffer, int xsrc console_input_events_append( screen_buffer->input, &evt ); } +/* pass current console font size */ +DECL_HANDLER(console_font_size) +{ + static int width; + static int height; + + if (req->mem == 1) + { + width = req->font_w; + height = req->font_h; + } + else + { + reply->font_x = width; + reply->font_y = height; + } +} + +/* pass size of largest possible console window */ +DECL_HANDLER(max_console_size) +{ + static int width; + static int height; + + if (req->mem == 1) + { + width = req->max_w; + height = req->max_h; + } + else + { + reply->max_x = width; + reply->max_y = height; + } +} + /* allocate a console for the renderer */ DECL_HANDLER(alloc_console) { -- 1.7.10.4