Commit 98ee594f authored by Benjamin Otte's avatar Benjamin Otte

blur: Simplify return_if_fail()

parent 0a64a4f3
...@@ -194,14 +194,11 @@ void ...@@ -194,14 +194,11 @@ void
_gtk_cairo_blur_surface (cairo_surface_t* surface, _gtk_cairo_blur_surface (cairo_surface_t* surface,
double radius_d) double radius_d)
{ {
cairo_format_t format;
int radius = radius_d; int radius = radius_d;
g_return_if_fail (surface != NULL); g_return_if_fail (surface != NULL);
g_return_if_fail (cairo_surface_get_type (surface) == CAIRO_SURFACE_TYPE_IMAGE); g_return_if_fail (cairo_surface_get_type (surface) == CAIRO_SURFACE_TYPE_IMAGE);
g_return_if_fail (cairo_image_surface_get_format (surface) == CAIRO_FORMAT_A8);
format = cairo_image_surface_get_format (surface);
g_return_if_fail (format == CAIRO_FORMAT_A8);
if (radius == 0) if (radius == 0)
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment