CreateFont gives the right size now
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@820 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
327cf49a88
commit
260dfe3830
1 changed files with 10 additions and 19 deletions
|
@ -1406,25 +1406,16 @@ static int NSISCALL ExecuteEntry(entry *entries, int pos)
|
||||||
return 0;
|
return 0;
|
||||||
#endif // NSIS_CONFIG_PLUGIN_SUPPORT
|
#endif // NSIS_CONFIG_PLUGIN_SUPPORT
|
||||||
case EW_CREATEFONT:
|
case EW_CREATEFONT:
|
||||||
myitoa(
|
{
|
||||||
g_usrvars[parm0],
|
LOGFONT f={0,};
|
||||||
(int)CreateFont(
|
f.lfHeight=-MulDiv(process_string_fromtab_toint(parm2),GetDeviceCaps(GetDC(g_hwnd),LOGPIXELSY),72);
|
||||||
process_string_fromtab_toint(parm2),
|
f.lfWeight=process_string_fromtab_toint(parm3);
|
||||||
0,
|
f.lfItalic=parm4&1;
|
||||||
0,
|
f.lfUnderline=parm4&2;
|
||||||
0,
|
f.lfStrikeOut=parm4&4;
|
||||||
process_string_fromtab_toint(parm3),
|
process_string_fromtab(f.lfFaceName,parm1);
|
||||||
parm4&1,
|
myitoa(g_usrvars[parm0],(int)CreateFontIndirect(&f));
|
||||||
parm4&2,
|
}
|
||||||
parm4&4,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
GetStringFromStringTab(parm1)
|
|
||||||
)
|
|
||||||
);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
my_MessageBox(STR(LANG_INSTCORRUPTED),MB_OK|MB_ICONSTOP);
|
my_MessageBox(STR(LANG_INSTCORRUPTED),MB_OK|MB_ICONSTOP);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue