mirror of
https://github.com/debauchee/barrier.git
synced 2025-06-18 02:31:42 +02:00
Removed a bug with computing the font size of the console window on Windows.
This commit is contained in:
parent
958fa80d1d
commit
a58a369c69
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue