diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-07-07 17:15:58 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-07-07 17:15:58 +0300 |
commit | ca2546483d9e4a413cba70a4afb55539971f4b6d (patch) | |
tree | ebe0b96b54277a7b0c45d9e8037ddd17eddf351d | |
parent | 47984f530797603897ac176e8dfe7578fafe64fd (diff) | |
download | metacity-ca2546483d9e4a413cba70a4afb55539971f4b6d.tar.gz |
theme: fix 'use cairo to render gradient' commit
-rw-r--r-- | src/ui/theme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c index 2ca219bd..b8377744 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -3951,12 +3951,12 @@ 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); |