summaryrefslogtreecommitdiff
path: root/libmetacity
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-07-07 17:09:01 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-07-07 17:09:01 +0300
commit127638caa99b019551cc0f6bb6052c276de4926a (patch)
tree2b63c03f877c4f36681da40ad963a431b9404f9c /libmetacity
parent71d5decc42f3367bcbe2c4656356edd0f94d9feb (diff)
downloadmetacity-127638caa99b019551cc0f6bb6052c276de4926a.tar.gz
libmetacity: fix 'use cairo to render gradient' commit
Diffstat (limited to 'libmetacity')
-rw-r--r--libmetacity/meta-gradient-spec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmetacity/meta-gradient-spec.c b/libmetacity/meta-gradient-spec.c
index 19c52912..bb6a98de 100644
--- a/libmetacity/meta-gradient-spec.c
+++ b/libmetacity/meta-gradient-spec.c
@@ -138,12 +138,12 @@ meta_gradient_spec_render (const MetaGradientSpec *spec,
{
cairo_pattern_t *pattern;
- cairo_save (cr);
-
pattern = create_cairo_pattern_from_gradient_spec (spec, alpha_spec, context);
if (pattern == NULL)
return;
+ cairo_save (cr);
+
cairo_rectangle (cr, x, y, width, height);
cairo_translate (cr, x, y);