Removed a bug with computing the font size of the console window on Windows.
This commit is contained in:
parent
958fa80d1d
commit
a58a369c69
|
@ -23,6 +23,7 @@
|
||||||
#define SYNERGY_MSG_CONSOLE_SHOW WM_APP + 0x0023
|
#define SYNERGY_MSG_CONSOLE_SHOW WM_APP + 0x0023
|
||||||
#define SYNERGY_MSG_CONSOLE_WRITE WM_APP + 0x0024
|
#define SYNERGY_MSG_CONSOLE_WRITE WM_APP + 0x0024
|
||||||
#define SYNERGY_MSG_CONSOLE_CLEAR WM_APP + 0x0025
|
#define SYNERGY_MSG_CONSOLE_CLEAR WM_APP + 0x0025
|
||||||
|
#define TWIPS_PER_POINT 20
|
||||||
|
|
||||||
//
|
//
|
||||||
// CArchConsoleWindows
|
// CArchConsoleWindows
|
||||||
|
@ -389,7 +390,7 @@ CArchConsoleWindows::threadMainLoop()
|
||||||
CFM_BOLD | CFM_ITALIC |
|
CFM_BOLD | CFM_ITALIC |
|
||||||
CFM_STRIKEOUT | CFM_UNDERLINE;
|
CFM_STRIKEOUT | CFM_UNDERLINE;
|
||||||
format.dwEffects = 0;
|
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.yOffset = 0;
|
||||||
format.crTextColor = RGB(0, 0, 0);
|
format.crTextColor = RGB(0, 0, 0);
|
||||||
format.bCharSet = DEFAULT_CHARSET;
|
format.bCharSet = DEFAULT_CHARSET;
|
||||||
|
|
Loading…
Reference in New Issue