trace: Fix hint_style/hint_metrics typo

Compiler warning saves the day!

trace.c: In function ‘_emit_font_options’:
trace.c:2973:20: warning: comparison between ‘cairo_hint_style_t’ and
‘enum _cairo_hint_metrics’

A genuine bug, thanks gcc!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-03-18 13:22:24 +00:00
parent 8a4299bf7e
commit df1dd83880

View file

@ -2970,7 +2970,7 @@ _emit_font_options (const cairo_font_options_t *options)
}
hint_metrics = DLCALL (cairo_font_options_get_hint_metrics, options);
if (hint_style != CAIRO_HINT_METRICS_DEFAULT) {
if (hint_metrics != CAIRO_HINT_METRICS_DEFAULT) {
_trace_printf (" /hint-metrics //%s",
_hint_metrics_to_string (hint_metrics));
}