From f37c524b097f03a959fc0e3a8566649fd69a9be2 Mon Sep 17 00:00:00 2001 From: Hugh McMaster Date: Fri, 4 Oct 2013 21:00:15 +1000 Subject: server-maxsb --- server/console.c | 2 ++ server/protocol.def | 2 ++ 2 files changed, 4 insertions(+) diff --git a/server/console.c b/server/console.c index 2a5ca80..989b4d8 100644 --- a/server/console.c +++ b/server/console.c @@ -1618,6 +1618,8 @@ DECL_HANDLER(create_console_output) screen_buffer = create_console_output( console, fd ); if (screen_buffer) { + screen_buffer->max_width = req->max_width; + screen_buffer->max_height = req->max_height; /* FIXME: should store sharing and test it when opening the CONOUT$ device * see file.c on how this could be done */ reply->handle_out = alloc_handle( current->process, screen_buffer, req->access, req->attributes ); diff --git a/server/protocol.def b/server/protocol.def index a7c5478..d6e8b9b 100644 --- a/server/protocol.def +++ b/server/protocol.def @@ -1423,6 +1423,8 @@ struct console_renderer_event unsigned int attributes; /* object attributes */ unsigned int share; /* sharing credentials */ int fd; /* for bare consoles, fd the screen-buffer is attached to */ + short int max_width; /* maximum width of the console window */ + short int max_height; /* maximum height of the console window */ @REPLY obj_handle_t handle_out; /* handle to the screen buffer */ @END -- 1.7.10.4