From 823a9b18d93cb8a7520d175da7834de1bcd62891 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 7 Jan 2023 14:49:02 -0700 Subject: [PATCH] [cairo] Return COMPOSITE mode CLEAR for unknown values As per the spec. --- src/hb-cairo-utils.hh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hb-cairo-utils.hh b/src/hb-cairo-utils.hh index ccb86ba43..369a1b0e7 100644 --- a/src/hb-cairo-utils.hh +++ b/src/hb-cairo-utils.hh @@ -64,10 +64,8 @@ hb_paint_composite_mode_to_cairo (hb_paint_composite_mode_t mode) case HB_PAINT_COMPOSITE_MODE_HSL_SATURATION: return CAIRO_OPERATOR_HSL_SATURATION; case HB_PAINT_COMPOSITE_MODE_HSL_COLOR: return CAIRO_OPERATOR_HSL_COLOR; case HB_PAINT_COMPOSITE_MODE_HSL_LUMINOSITY: return CAIRO_OPERATOR_HSL_LUMINOSITY; - default:; + default: return CAIRO_OPERATOR_CLEAR; } - - return CAIRO_OPERATOR_SOURCE; } HB_INTERNAL hb_bool_t