From: Rob Norris Date: Sat, 9 Mar 2013 10:49:42 +0000 (+0000) Subject: Change map image interpolation to a more precise one. X-Git-Url: https://git.street.me.uk/andy/viking.git/commitdiff_plain/2d5d32c172fd71ee4b4230b9b83b7dccfa1e14f1 Change map image interpolation to a more precise one. Although this is slightly slower - it is not called often, not noticeable on modern systems and the result will get added the map memory cache anyway. Reverse of commit SHA1:9fdb940f73cb138e942ddc38eb3f1854f6de70a2 --- diff --git a/src/vikmapslayer.c b/src/vikmapslayer.c index 6c005dd1..5d0c7ff9 100644 --- a/src/vikmapslayer.c +++ b/src/vikmapslayer.c @@ -642,7 +642,7 @@ static GdkPixbuf *pixbuf_shrink ( GdkPixbuf *pixbuf, gdouble xshrinkfactor, gdou { GdkPixbuf *tmp; guint16 width = gdk_pixbuf_get_width(pixbuf), height = gdk_pixbuf_get_height(pixbuf); - tmp = gdk_pixbuf_scale_simple(pixbuf, ceil(width * xshrinkfactor), ceil(height * yshrinkfactor), GDK_INTERP_NEAREST); + tmp = gdk_pixbuf_scale_simple(pixbuf, ceil(width * xshrinkfactor), ceil(height * yshrinkfactor), GDK_INTERP_BILINEAR); g_object_unref ( G_OBJECT(pixbuf) ); return tmp; }