mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix windows bustage. (Bug 363706)
This commit is contained in:
parent
a25327bdfa
commit
805167d689
@ -633,9 +633,9 @@ gfxWindowsFont::ComputeMetrics()
|
||||
|
||||
// Cache the width of digit zero.
|
||||
// XXX MSDN (http://msdn.microsoft.com/en-us/library/ms534223.aspx)
|
||||
// does not say what the failure modes for GetExtentPoint32 are -
|
||||
// does not say what the failure modes for GetTextExtentPoint32 are -
|
||||
// is it safe to assume it will fail iff the font has no '0'?
|
||||
if (GetExtentPoint32(dc, "0", 1, &size))
|
||||
if (GetTextExtentPoint32(dc, "0", 1, &size))
|
||||
mMetrics->zeroOrAveCharWidth = ROUND(size.cx);
|
||||
else
|
||||
mMetrics->zeroOrAveCharWidth = mMetrics->aveCharWidth;
|
||||
|
Loading…
Reference in New Issue
Block a user