Removed a bug with computing the font size of the console window on Windows.

This commit is contained in:
Sorin Sbarnea 2009-03-02 08:32:36 +00:00
parent 958fa80d1d
commit a58a369c69
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@
#define SYNERGY_MSG_CONSOLE_SHOW WM_APP + 0x0023
#define SYNERGY_MSG_CONSOLE_WRITE WM_APP + 0x0024
#define SYNERGY_MSG_CONSOLE_CLEAR WM_APP + 0x0025
#define TWIPS_PER_POINT 20
//
// CArchConsoleWindows
@ -389,7 +390,7 @@ CArchConsoleWindows::threadMainLoop()
CFM_BOLD | CFM_ITALIC |
CFM_STRIKEOUT | CFM_UNDERLINE;
format.dwEffects = 0;
format.yHeight = metrics.tmHeight;
format.yHeight = metrics.tmHeight * TWIPS_PER_POINT; // this is in 1/1440 in (twips)
format.yOffset = 0;
format.crTextColor = RGB(0, 0, 0);
format.bCharSet = DEFAULT_CHARSET;