aboutsummaryrefslogtreecommitdiff
path: root/WinUtils.h
diff options
context:
space:
mode:
authorRadAd <adamgates84+github@gmail.com>2019-05-24 13:57:12 +1000
committerRadAd <adamgates84+github@gmail.com>2019-05-24 13:57:12 +1000
commitf8c69335d47536ebd4c2e695f383ddbf5e897aeb (patch)
treeacc07afd62dd993ae0296326986e457592218a89 /WinUtils.h
parentfab29d0a0a85a06647ab3ad704ee2c6cb7db0edb (diff)
downloadRadTerminal-f8c69335d47536ebd4c2e695f383ddbf5e897aeb.tar.gz
RadTerminal-f8c69335d47536ebd4c2e695f383ddbf5e897aeb.zip
support italic and underline fonts
Diffstat (limited to 'WinUtils.h')
-rw-r--r--WinUtils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/WinUtils.h b/WinUtils.h
index a2b630b..4498099 100644
--- a/WinUtils.h
+++ b/WinUtils.h
@@ -28,9 +28,9 @@ inline RECT Rect(POINT p1, SIZE s2)
return { p1.x, p1.y, p1.x + s2.cx, p1.y + s2.cy };
}
-inline HFONT CreateFont(LPTSTR pFontFace, int iFontHeight, int cWeight)
+inline HFONT CreateFont(LPTSTR pFontFace, int iFontHeight, int cWeight, BOOL bItalic, BOOL bUnderline)
{
- return CreateFont(iFontHeight, 0, 0, 0, cWeight, FALSE, FALSE, FALSE, ANSI_CHARSET,
+ return CreateFont(iFontHeight, 0, 0, 0, cWeight, bItalic, bUnderline, FALSE, ANSI_CHARSET,
OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY,
DEFAULT_PITCH | FF_DONTCARE, pFontFace);
}