OSDN Git Service
(root)
/
winmerge-jp
/
winmerge-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f83a93
)
Use CFont::CreatePointFont() instead of CFont::CreateFont()
author
Takashi Sawanaka
<sdottaka@users.sourceforge.net>
Sat, 25 Jun 2016 11:36:31 +0000
(20:36 +0900)
committer
Takashi Sawanaka
<sdottaka@users.sourceforge.net>
Sat, 25 Jun 2016 11:36:31 +0000
(20:36 +0900)
Src/AboutDlg.cpp
patch
|
blob
|
history
diff --git
a/Src/AboutDlg.cpp
b/Src/AboutDlg.cpp
index
9844bc4
..
c4f8a53
100644
(file)
--- a/
Src/AboutDlg.cpp
+++ b/
Src/AboutDlg.cpp
@@
-101,10
+101,7
@@
BOOL CAboutDlg::Impl::OnInitDialog()
m_image.Load(IDR_SPLASH);
- const int fontHeight = -MulDiv(10, CClientDC(this).GetDeviceCaps(LOGPIXELSY), 72);
- m_font.CreateFont(fontHeight, 0, 0, 0, FW_MEDIUM, FALSE, FALSE,
- 0, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,
- DEFAULT_QUALITY, DEFAULT_PITCH | FF_SWISS, _T("Tahoma"));
+ m_font.CreatePointFont(10 * 10, _T("Tahoma"));
SetDlgItemText(IDC_STATIC, m_p->m_info.developers);
GetDlgItem(IDC_STATIC)->SetFont(&m_font);