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



commit ca2546483d9e4a413cba70a4afb55539971f4b6d
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Jul 7 17:15:58 2016 +0300

    theme: fix 'use cairo to render gradient' commit

 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 2ca219b..b837774 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);


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