gdi32: Use a macro instead of accessing FT_Face flags directly.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
cd220569dd
commit
4b05cac391
|
@ -7458,7 +7458,7 @@ static BOOL get_bitmap_text_metrics(GdiFont *font)
|
||||||
TM.tmUnderlined = font->underline;
|
TM.tmUnderlined = font->underline;
|
||||||
TM.tmStruckOut = font->strikeout;
|
TM.tmStruckOut = font->strikeout;
|
||||||
/* NB inverted meaning of TMPF_FIXED_PITCH */
|
/* NB inverted meaning of TMPF_FIXED_PITCH */
|
||||||
TM.tmPitchAndFamily = ft_face->face_flags & FT_FACE_FLAG_FIXED_WIDTH ? 0 : TMPF_FIXED_PITCH;
|
TM.tmPitchAndFamily = FT_IS_FIXED_WIDTH(ft_face) ? 0 : TMPF_FIXED_PITCH;
|
||||||
TM.tmCharSet = font->charset;
|
TM.tmCharSet = font->charset;
|
||||||
}
|
}
|
||||||
#undef TM
|
#undef TM
|
||||||
|
|
Loading…
Reference in New Issue