Font size is not calculated correctly
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@819 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
1890426e07
commit
327cf49a88
2 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ BOOL CALLBACK DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
size = myatoi(temp);
|
||||
if (!popstring(temp)) {
|
||||
LOGFONT f = {0,};
|
||||
f.lfHeight = size;
|
||||
f.lfHeight = -MulDiv(size, GetDeviceCaps(GetDC(hwndDlg), LOGPIXELSY), 72);
|
||||
lstrcpy(f.lfFaceName, temp);
|
||||
font = CreateFontIndirect(&f);
|
||||
SendMessage(hwndDlg, WM_SETFONT, (WPARAM)font, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue