mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 06:28:01 +02:00
freetype: Compare all elements in ft_options but not use memcmp.
This commit is contained in:
parent
e4736fcf76
commit
c9de7b1286
1 changed files with 3 additions and 1 deletions
|
|
@ -2132,7 +2132,9 @@ _cairo_ft_font_face_create (cairo_ft_unscaled_font_t *unscaled,
|
|||
font_face;
|
||||
font_face = font_face->next)
|
||||
{
|
||||
if (!memcmp (&font_face->ft_options, &ft_options, sizeof (cairo_ft_options_t)))
|
||||
if (font_face->ft_options.load_flags == ft_options.load_flags &&
|
||||
font_face->ft_options.extra_flags == ft_options.extra_flags &&
|
||||
cairo_font_options_equal (&font_face->ft_options.base, &ft_options.base))
|
||||
return cairo_font_face_reference (&font_face->base);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue