[2/2] server/console: Add support for the largest possible console window

Hugh McMaster hugh.mcmaster at masterindexing.com
Sun Dec 1 23:59:02 CST 2013


This patch adds support for the largest possible console window size in server/console.c.  It also allows wineconsole to set these values in the server and dlls/kernel32.dll to retrieve them upon creation of the console window.

Note that screen_buffer->max_width/height is not the same as screen_buffer->maxconwin_w/h.

The former refers to the maximum window size as per the screen buffer size. That is, if the screen buffer is 80 x 25 cells, the window cannot be larger than 80 x 25 cells.

The values assigned to screen_buffer->maxconwin_w/h are independent and correspond to the largest possible console window size as determined by screen resolution and console font size.  These are set by wineconsole upon loading and after any font size changes.

---
 dlls/kernel32/console.c            |   29 ++++++++++++++++++++++++-----
 programs/wineconsole/wineconsole.c |    9 +++++++++
 server/console.c                   |   11 +++++++++++
 server/protocol.def                |    6 +++++-
 4 files changed, 49 insertions(+), 6 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0002-wineconsole-server.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20131202/a9e74e57/attachment.txt>


More information about the wine-patches mailing list