msi: The dialog units are based on a 12-point font size, despite the documentation.
This commit is contained in:
parent
395e41103e
commit
3271362a26
|
@ -171,7 +171,7 @@ static HWND hMsiHiddenWindow;
|
||||||
|
|
||||||
static INT msi_dialog_scale_unit( msi_dialog *dialog, INT val )
|
static INT msi_dialog_scale_unit( msi_dialog *dialog, INT val )
|
||||||
{
|
{
|
||||||
return (dialog->scale * val + 5) / 10;
|
return MulDiv( val, dialog->scale, 12 );
|
||||||
}
|
}
|
||||||
|
|
||||||
static msi_control *msi_dialog_find_control( msi_dialog *dialog, LPCWSTR name )
|
static msi_control *msi_dialog_find_control( msi_dialog *dialog, LPCWSTR name )
|
||||||
|
@ -2911,7 +2911,7 @@ static INT msi_dialog_get_sans_serif_height( HWND hwnd )
|
||||||
if (hdc)
|
if (hdc)
|
||||||
{
|
{
|
||||||
memset( &lf, 0, sizeof lf );
|
memset( &lf, 0, sizeof lf );
|
||||||
lf.lfHeight = MulDiv(10, GetDeviceCaps(hdc, LOGPIXELSY), 72);
|
lf.lfHeight = MulDiv(12, GetDeviceCaps(hdc, LOGPIXELSY), 72);
|
||||||
strcpyW( lf.lfFaceName, szSansSerif );
|
strcpyW( lf.lfFaceName, szSansSerif );
|
||||||
hFont = CreateFontIndirectW(&lf);
|
hFont = CreateFontIndirectW(&lf);
|
||||||
if (hFont)
|
if (hFont)
|
||||||
|
|
Loading…
Reference in New Issue