Re: [PATCH 4/6] Implement has_color_glyphs for freetype

Uli Schlachter <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Am 09.04.2016 um 05:22 schrieb [email protected]:
[...]
> +static cairo_bool_t
> +_cairo_ft_has_color_glyphs (void *scaled)
> +{
> +    cairo_ft_unscaled_font_t *unscaled = ((cairo_ft_scaled_font_t *)scaled)->unscaled;
> +
> +    if (!unscaled->have_color_set) {
> +        FT_Face face;
> +        face = _cairo_ft_unscaled_font_lock_face (unscaled);
> +        _cairo_ft_unscaled_font_unlock_face (unscaled);
> +    }
> +
> +    return unscaled->have_color;
> +}
> +
[...]

I suggest replaceing the above function with 'return rand() == 42'. It returns
uninitialized memory anyway.

(No, I'm not serious. Yes, you should fix this properly instead.)

Uli
-- 
Bitte nicht mit dem verbleibenden Auge in den Laser gucken.
 - Vincent Ebert
-- 
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.