[Debugger] Use current font height

This commit is contained in:
zilmar 2017-09-28 05:54:58 +10:00
parent 52f020aae0
commit ef88a30a1c
1 changed files with 3 additions and 1 deletions

View File

@ -19,8 +19,10 @@ bool CRegisterTabs::m_bColorsEnabled = false;
void CRegisterTabs::Attach(HWND hWndNew) void CRegisterTabs::Attach(HWND hWndNew)
{ {
CTabCtrl::Attach(hWndNew); CTabCtrl::Attach(hWndNew);
LOGFONT lf;
GetObject((HFONT)GetCurrentObject(GetDC(), OBJ_FONT), sizeof(LOGFONT), &lf);
HFONT monoFont = CreateFont(-11, 0, 0, 0, HFONT monoFont = CreateFont(lf.lfHeight * -1, 0, 0, 0,
FW_DONTCARE, FALSE, FALSE, FALSE, DEFAULT_CHARSET, FW_DONTCARE, FALSE, FALSE, FALSE, DEFAULT_CHARSET,
OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,
CLEARTYPE_QUALITY, FF_DONTCARE, "Consolas" CLEARTYPE_QUALITY, FF_DONTCARE, "Consolas"