]> git.street.me.uk Git - andy/viking.git/commitdiff
Change map image interpolation to a more precise one.
authorRob Norris <rw_norris@hotmail.com>
Sat, 9 Mar 2013 10:49:42 +0000 (10:49 +0000)
committerRob Norris <rw_norris@hotmail.com>
Sat, 9 Mar 2013 10:49:42 +0000 (10:49 +0000)
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

src/vikmapslayer.c

index 6c005dd1fd54923aa6993b8bf06408e37a01a532..5d0c7ff916335c6af0d621a3c9882f9755b0e7d7 100644 (file)
@@ -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;
 }