From 6341ebde9999cca5f7d77fef1d9e537b627f07ca Mon Sep 17 00:00:00 2001 From: Christian Neumair Date: Mon, 19 May 2008 13:40:25 +0000 Subject: Use bilinear interpolation instead of hyperbolic. Massively speeds up 2008-05-19 Christian Neumair * libnautilus-private/nautilus-file.c (nautilus_file_get_icon): * libnautilus-private/nautilus-icon-info.c (nautilus_icon_info_lookup), (nautilus_icon_info_get_pixbuf_nodefault_at_size), (nautilus_icon_info_get_pixbuf_at_size): Use bilinear interpolation instead of hyperbolic. Massively speeds up loading of directories with previously generated thumbnails. svn path=/trunk/; revision=14174 --- libnautilus-private/nautilus-icon-info.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libnautilus-private/nautilus-icon-info.c') diff --git a/libnautilus-private/nautilus-icon-info.c b/libnautilus-private/nautilus-icon-info.c index 2ee95ab05..ab88dfd4e 100644 --- a/libnautilus-private/nautilus-icon-info.c +++ b/libnautilus-private/nautilus-icon-info.c @@ -368,7 +368,7 @@ nautilus_icon_info_lookup (GIcon *icon, scale = (double)size / s; scaled_pixbuf = gdk_pixbuf_scale_simple (pixbuf, w * scale, h * scale, - GDK_INTERP_HYPER); + GDK_INTERP_BILINEAR); g_object_unref (pixbuf); pixbuf = scaled_pixbuf; } @@ -508,7 +508,7 @@ nautilus_icon_info_get_pixbuf_nodefault_at_size (NautilusIconInfo *icon, scale = (double)forced_size / s; scaled_pixbuf = gdk_pixbuf_scale_simple (pixbuf, w * scale, h * scale, - GDK_INTERP_HYPER); + GDK_INTERP_BILINEAR); g_object_unref (pixbuf); return scaled_pixbuf; } @@ -534,7 +534,7 @@ nautilus_icon_info_get_pixbuf_at_size (NautilusIconInfo *icon, scale = (double)forced_size / s; scaled_pixbuf = gdk_pixbuf_scale_simple (pixbuf, w * scale, h * scale, - GDK_INTERP_HYPER); + GDK_INTERP_BILINEAR); g_object_unref (pixbuf); return scaled_pixbuf; } -- cgit v1.2.1