Commit 3411e97b authored by Christian Persch's avatar Christian Persch

Don't modify source_pixbuf. If we're going to change the saturation, first

	* src/vtebg.c: (vte_bg_get_pixmap): Don't modify source_pixbuf. If
	we're going to change the saturation, first make a copy. Fixes
	switching background type between fauxtransparency and image in
	gnome-terminal trunk.

svn path=/trunk/; revision=2333
parent 1862b94f
2008-12-05 Christian Persch <chpe@gnome.org>
* src/vtebg.c: (vte_bg_get_pixmap): Don't modify source_pixbuf. If
we're going to change the saturation, first make a copy. Fixes
switching background type between fauxtransparency and image in
gnome-terminal trunk.
2008-12-05 Behdad Esfahbod <behdad@gnome.org>
* src/vtepangocairo.c (_vte_pangocairo_clear): Fix scrolling offset.
......
......@@ -619,9 +619,13 @@ vte_bg_get_pixmap(VteBg *bg,
}
break;
case VTE_BG_SOURCE_PIXBUF:
pixbuf = source_pixbuf;
if (GDK_IS_PIXBUF(pixbuf)) {
g_object_ref(pixbuf);
if (GDK_IS_PIXBUF(source_pixbuf)) {
/* If we're going to modify the pixbuf below, make a copy first! */
if (saturation != 1.0) {
pixbuf = gdk_pixbuf_copy(source_pixbuf);
} else {
pixbuf = g_object_ref(source_pixbuf);
}
}
break;
case VTE_BG_SOURCE_FILE:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment