From 29a36010a1514c72c207fec8b5ab8361617a0078 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 25 Jan 2023 17:26:33 -0700 Subject: [PATCH] [cairo] Adapt to cairo foreground API change again --- src/hb-cairo-utils.cc | 2 +- src/hb-cairo.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-cairo-utils.cc b/src/hb-cairo-utils.cc index 0d6a7e4b6..7b4ccefb6 100644 --- a/src/hb-cairo-utils.cc +++ b/src/hb-cairo-utils.cc @@ -289,7 +289,7 @@ _hb_cairo_get_color_stops (hb_cairo_context_t *c, { #ifdef HAVE_CAIRO_USER_SCALED_FONT_GET_FOREGROUND_SOURCE double r, g, b, a; - cairo_pattern_t *foreground = cairo_user_scaled_font_get_foreground_source (c->scaled_font, true); + cairo_pattern_t *foreground = cairo_user_scaled_font_get_foreground_source (c->scaled_font); if (cairo_pattern_get_rgba (foreground, &r, &g, &b, &a) == CAIRO_STATUS_SUCCESS) (*stops)[i].color = HB_COLOR (round (b * 255.), round (g * 255.), round (r * 255.), round (a * hb_color_get_alpha ((*stops)[i].color))); diff --git a/src/hb-cairo.cc b/src/hb-cairo.cc index 64bcc63c6..43e3f05d4 100644 --- a/src/hb-cairo.cc +++ b/src/hb-cairo.cc @@ -255,7 +255,7 @@ hb_cairo_paint_color (hb_paint_funcs_t *pfuncs HB_UNUSED, { #ifdef HAVE_CAIRO_USER_SCALED_FONT_GET_FOREGROUND_SOURCE double r, g, b, a; - cairo_pattern_t *foreground = cairo_user_scaled_font_get_foreground_source (c->scaled_font, true); + cairo_pattern_t *foreground = cairo_user_scaled_font_get_foreground_source (c->scaled_font); if (cairo_pattern_get_rgba (foreground, &r, &g, &b, &a) == CAIRO_STATUS_SUCCESS) cairo_set_source_rgba (cr, r, g, b, a * hb_color_get_alpha (color) / 255.); else