]> git.street.me.uk Git - andy/viking.git/commitdiff
Change interpolation to a faster one
authorJocelyn Jaubert <jocelyn.jaubert@gmail.com>
Sun, 15 Mar 2009 12:07:19 +0000 (13:07 +0100)
committerJocelyn Jaubert <jocelyn.jaubert@gmail.com>
Fri, 28 Aug 2009 12:53:56 +0000 (14:53 +0200)
TODO: this should be put in a viking preference.

src/vikmapslayer.c

index 10bb0e679a95fa3ab2b711dd77658ddefa6ca528..045e315a6d3e8ba2b24b492c9c9d42a739f787e5 100644 (file)
@@ -516,7 +516,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_BILINEAR);
+  tmp = gdk_pixbuf_scale_simple(pixbuf, ceil(width * xshrinkfactor), ceil(height * yshrinkfactor), GDK_INTERP_NEAREST);
   g_object_unref ( G_OBJECT(pixbuf) );
   return tmp;
 }