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
This commit is contained in:
Cosimo Cecchi 2011-11-08 12:36:55 -05:00
parent 3b436eec6d
commit f9d16f3923

View File

@ -1622,6 +1622,7 @@ render_background_internal (GtkThemingEngine *engine,
}
else
{
cairo_pattern_set_extend (pattern, CAIRO_EXTEND_PAD);
scale_width = width;
scale_height = height;
}