diff options
Diffstat (limited to 'src/haiku_font_support.cc')
-rw-r--r-- | src/haiku_font_support.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/haiku_font_support.cc b/src/haiku_font_support.cc index 1156f0bced2..cc4eba5c294 100644 --- a/src/haiku_font_support.cc +++ b/src/haiku_font_support.cc @@ -494,8 +494,8 @@ font_family_style_matches_p (font_family family, char *style, uint32_t flags, strcmp ((char *) &pattern->family, family)) return false; - if (!ignore_flags_p && (pattern->specified & FSPEC_SPACING) && - !(pattern->mono_spacing_p) != !(flags & B_IS_FIXED)) + if (!ignore_flags_p && (pattern->specified & FSPEC_SPACING) + && !(pattern->mono_spacing_p) != !(flags & B_IS_FIXED)) return false; if (pattern->specified & FSPEC_STYLE) @@ -508,7 +508,8 @@ font_family_style_matches_p (font_family family, char *style, uint32_t flags, if ((pattern->specified & FSPEC_SLANT) && (pattern->slant - != ((m.specified & FSPEC_SLANT) ? m.slant : SLANT_REGULAR))) + != (m.specified & FSPEC_SLANT + ? m.slant : SLANT_REGULAR))) return false; if ((pattern->specified & FSPEC_WANTED) @@ -516,8 +517,9 @@ font_family_style_matches_p (font_family family, char *style, uint32_t flags, return false; if ((pattern->specified & FSPEC_WIDTH) - && (pattern->width != - ((m.specified & FSPEC_WIDTH) ? m.width : NORMAL_WIDTH))) + && (pattern->width + != (m.specified & FSPEC_WIDTH + ? m.width : NORMAL_WIDTH))) return false; if ((pattern->specified & FSPEC_NEED_ONE_OF) |