summaryrefslogtreecommitdiff
path: root/gtk/gtkcssimage.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2015-11-20 21:20:48 -0800
committerCosimo Cecchi <cosimoc@gnome.org>2015-11-21 14:52:18 -0800
commitb821f132d115c074537d59861fcfd99687fc8e20 (patch)
treeba0330e4cbe778d2b4da1b73148c97b4605f38cd /gtk/gtkcssimage.c
parent5fb10d25c150d068bea0fdfe708e1e525bf44d3c (diff)
downloadgtk+-b821f132d115c074537d59861fcfd99687fc8e20.tar.gz
GtkCssImage: formatting fixes
Diffstat (limited to 'gtk/gtkcssimage.c')
-rw-r--r--gtk/gtkcssimage.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/gtk/gtkcssimage.c b/gtk/gtkcssimage.c
index 31b1e80567..918a6ec6ac 100644
--- a/gtk/gtkcssimage.c
+++ b/gtk/gtkcssimage.c
@@ -390,14 +390,11 @@ _gtk_css_image_get_surface (GtkCssImage *image,
g_return_val_if_fail (surface_width > 0, NULL);
g_return_val_if_fail (surface_height > 0, NULL);
-
if (target)
- {
- result = cairo_surface_create_similar (target,
- CAIRO_CONTENT_COLOR_ALPHA,
- surface_width,
- surface_height);
- }
+ result = cairo_surface_create_similar (target,
+ CAIRO_CONTENT_COLOR_ALPHA,
+ surface_width,
+ surface_height);
else
result = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
surface_width,