summaryrefslogtreecommitdiff
path: root/wallpapers.c
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-03-09 20:31:26 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-03-09 20:31:26 +0100
commitb6b63a3c51eab072483ac0c7ad07f107bb790788 (patch)
tree7f03f6b2fea9b28a51e7534b70b5969eba275110 /wallpapers.c
parentc32c6f5ad024cf4ca396b867d82693501e341659 (diff)
Implemented zooming with scrollwheel.
This works by holding control down while scrolling up or down. Horizontal scrolling will now also work by holding shift down.
Diffstat (limited to 'wallpapers.c')
-rw-r--r--wallpapers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wallpapers.c b/wallpapers.c
index 0d37f5e..dbfb8a1 100644
--- a/wallpapers.c
+++ b/wallpapers.c
@@ -235,6 +235,6 @@ GdkPixbuf *zoom_pixbuf(GdkPixbuf *orig, gdouble zoom) {
height = img_height * zoom;
pb = gdk_pixbuf_new(GDK_COLORSPACE_RGB, TRUE, 8, width, height);
gdk_pixbuf_scale(orig, pb, 0, 0, width, height, 0, 0,
- (gdouble)width / (gdouble)img_width, (gdouble)height / (gdouble)img_height, GDK_INTERP_BILINEAR);
+ (gdouble)width / (gdouble)img_width, (gdouble)height / (gdouble)img_height, GDK_INTERP_NEAREST);
return pb;
}