[metacity/gnome-3-20] libmetacity: fix 'use cairo to render gradient' commit



commit 6968538b318078ded28ba79dd03a76e395ad5150
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Jul 7 17:09:01 2016 +0300

    libmetacity: fix 'use cairo to render gradient' commit

 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 19c5291..bb6a98d 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]