[gtk+] themingengine: set the cairo extend to PAD when we're stretching bg



commit f9d16f39235376c176621ccaef00685118f2fc95
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Nov 8 12:36:55 2011 -0500

    themingengine: set the cairo extend to PAD when we're stretching bg
    
    This avoids artifacts around the borders due to bilinear filtering cairo
    applies to the surface pattern when stretching it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=663522

 gtk/gtkthemingengine.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index 8d6da01..f068c3d 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -1622,6 +1622,7 @@ render_background_internal (GtkThemingEngine *engine,
         }
       else
         {
+          cairo_pattern_set_extend (pattern, CAIRO_EXTEND_PAD);
           scale_width = width;
           scale_height = height;
         }



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