From ef88a30a1ca6ed62769f9013f2232389f01e5d8c Mon Sep 17 00:00:00 2001 From: zilmar Date: Thu, 28 Sep 2017 05:54:58 +1000 Subject: [PATCH] [Debugger] Use current font height --- Source/Project64/N64System/Debugger/Debugger-RegisterTabs.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Project64/N64System/Debugger/Debugger-RegisterTabs.cpp b/Source/Project64/N64System/Debugger/Debugger-RegisterTabs.cpp index 91becae49..61bf302e5 100644 --- a/Source/Project64/N64System/Debugger/Debugger-RegisterTabs.cpp +++ b/Source/Project64/N64System/Debugger/Debugger-RegisterTabs.cpp @@ -19,8 +19,10 @@ bool CRegisterTabs::m_bColorsEnabled = false; void CRegisterTabs::Attach(HWND 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, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, CLEARTYPE_QUALITY, FF_DONTCARE, "Consolas"