diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-07-07 17:09:01 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-07-07 17:09:01 +0300 |
commit | 127638caa99b019551cc0f6bb6052c276de4926a (patch) | |
tree | 2b63c03f877c4f36681da40ad963a431b9404f9c /libmetacity | |
parent | 71d5decc42f3367bcbe2c4656356edd0f94d9feb (diff) | |
download | metacity-127638caa99b019551cc0f6bb6052c276de4926a.tar.gz |
libmetacity: fix 'use cairo to render gradient' commit
Diffstat (limited to 'libmetacity')
-rw-r--r-- | libmetacity/meta-gradient-spec.c | 4 |
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); |