mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
gdi32: Always initialize the em_scale variable.
This commit is contained in:
parent
82c4fa35aa
commit
67d452d8ac
@ -6386,11 +6386,12 @@ static DWORD get_glyph_outline(GdiFont *incoming_font, UINT glyph, UINT format,
|
||||
/* metrics.width = min( metrics.width, ptm->tmMaxCharWidth << 6 ); */
|
||||
}
|
||||
|
||||
em_scale = MulDiv(incoming_font->ppem, 1 << 16, incoming_font->ft_face->units_per_EM);
|
||||
|
||||
if(FT_IS_SCALABLE(incoming_font->ft_face)) {
|
||||
TEXTMETRICW tm;
|
||||
if (get_text_metrics(incoming_font, &tm) &&
|
||||
!(tm.tmPitchAndFamily & TMPF_FIXED_PITCH)) {
|
||||
em_scale = MulDiv(incoming_font->ppem, 1 << 16, incoming_font->ft_face->units_per_EM);
|
||||
avgAdvance = pFT_MulFix(incoming_font->ntmAvgWidth, em_scale);
|
||||
if (avgAdvance &&
|
||||
(metrics.horiAdvance+63) >> 6 == pFT_MulFix(incoming_font->ntmAvgWidth*2, em_scale))
|
||||
|
Loading…
Reference in New Issue
Block a user