From b6b63a3c51eab072483ac0c7ad07f107bb790788 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Tue, 9 Mar 2010 20:31:26 +0100 Subject: 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. --- wallpapers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wallpapers.c') 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; } -- cgit v1.2.3