Check the value returned by DIALOG_GetCharSize.
This commit is contained in:
parent
df5e579254
commit
e6dd5d1cad
|
@ -688,9 +688,11 @@ HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCSTR dlgTemplate,
|
||||||
if (hFont)
|
if (hFont)
|
||||||
{
|
{
|
||||||
SIZE charSize;
|
SIZE charSize;
|
||||||
DIALOG_GetCharSize(hFont,&charSize);
|
if (DIALOG_GetCharSize(hFont,&charSize))
|
||||||
xUnit = charSize.cx;
|
{
|
||||||
yUnit = charSize.cy;
|
xUnit = charSize.cx;
|
||||||
|
yUnit = charSize.cy;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
TRACE("units = %d,%d\n", xUnit, yUnit );
|
TRACE("units = %d,%d\n", xUnit, yUnit );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue