changeset 11324:772d086e9067

[gaim-migrate @ 13535] Use a better scaling method. Was there any particular reason this was using GTK_INTERP_NEAREST? From the GDK docs: "Nearest neighbor sampling; this is the fastest and lowest quality mode. Quality is normally unacceptable when scaling down, but may be OK when scaling up." committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 22 Aug 2005 21:41:15 +0000
parents caec745e390e
children dc75e1a824cd
files src/gtkconv.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconv.c	Sun Aug 21 20:13:22 2005 +0000
+++ b/src/gtkconv.c	Mon Aug 22 21:41:15 2005 +0000
@@ -2509,7 +2509,7 @@
 		    gdk_pixbuf_animation_get_width(gtkconv->u.im->anim), 1),
 		MAX(gdk_pixbuf_get_height(buf) * scale_height /
 		    gdk_pixbuf_animation_get_height(gtkconv->u.im->anim), 1),
-		GDK_INTERP_NEAREST);
+		GDK_INTERP_BILINEAR);
 
 	gdk_pixbuf_render_pixmap_and_mask(scale, &pm, &bm, 100);
 	g_object_unref(G_OBJECT(scale));
@@ -5797,7 +5797,7 @@
 				    gdk_pixbuf_animation_get_width(gtkconv->u.im->anim), 1),
 				MAX(gdk_pixbuf_get_height(buf) * scale_height /
 				    gdk_pixbuf_animation_get_height(gtkconv->u.im->anim), 1),
-				GDK_INTERP_NEAREST);
+				GDK_INTERP_BILINEAR);
 
 	gdk_pixbuf_render_pixmap_and_mask(scale, &pm, &bm, 100);
 	g_object_unref(G_OBJECT(scale));