[gthumb] use NEAREST when zoom is 1.0



commit 7055e9495886c6907473c889afa48527b2ab532b
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Thu Mar 4 23:29:33 2010 +0100

    use NEAREST when zoom is 1.0

 gthumb/gth-image-dragger.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-image-dragger.c b/gthumb/gth-image-dragger.c
index 25e545f..756eb31 100644
--- a/gthumb/gth-image-dragger.c
+++ b/gthumb/gth-image-dragger.c
@@ -146,8 +146,8 @@ gth_image_dragger_expose (GthImageViewerTool *self,
 	else
 		interp_type = GDK_INTERP_BILINEAR;
 
-	if (FLOAT_EQUAL (gth_image_viewer_get_zoom (viewer), 1.0))
-		interp_type = GDK_INTERP_TILES;
+	if (gth_image_viewer_get_zoom (viewer) == 1.0)
+		interp_type = GDK_INTERP_NEAREST;
 
 	if (gdk_rectangle_intersect (&viewer->image_area, event_area, &paint_area))
 		gth_image_viewer_paint (viewer,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]