fix(blur): rgb24 is properly handled

This commit is contained in:
Jeremy Attali 2021-02-15 15:03:20 -05:00 committed by Jeremy Attali
parent 6bfb36734c
commit c04ed63d26

View File

@ -45,10 +45,10 @@ static cairo_surface_t *blur_surface(cairo_surface_t *surface, double x,
switch (src_format) { switch (src_format) {
case CAIRO_FORMAT_A1: case CAIRO_FORMAT_A1:
case CAIRO_FORMAT_A8: case CAIRO_FORMAT_A8:
case CAIRO_FORMAT_RGB24:
default: default:
g_warning("source surface format: %d is not supported", src_format); g_warning("source surface format: %d is not supported", src_format);
return NULL; return NULL;
case CAIRO_FORMAT_RGB24:
case CAIRO_FORMAT_ARGB32: case CAIRO_FORMAT_ARGB32:
break; break;
} }