mirror of
https://github.com/jtheoof/swappy.git
synced 2024-09-11 14:55:49 +03:00
fix(blur): rgb24 is properly handled
This commit is contained in:
parent
6bfb36734c
commit
c04ed63d26
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user