[gthumb] Use GDK_INTERP_TILES instead of GDK_INTERP_NEAREST for low quality
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] Use GDK_INTERP_TILES instead of GDK_INTERP_NEAREST for low quality
- Date: Thu, 4 Mar 2010 22:31:13 +0000 (UTC)
commit 2e3c31d67a5304c96251403066117d0af232a066
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Mar 4 20:47:19 2010 +0100
Use GDK_INTERP_TILES instead of GDK_INTERP_NEAREST for low quality
GDK_INTERP_NEAREST is broken for big images.
[bug #611812]
gthumb/gth-image-dragger.c | 4 ++--
gthumb/gth-image-selector.c | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gthumb/gth-image-dragger.c b/gthumb/gth-image-dragger.c
index 2093f34..25e545f 100644
--- a/gthumb/gth-image-dragger.c
+++ b/gthumb/gth-image-dragger.c
@@ -142,12 +142,12 @@ gth_image_dragger_expose (GthImageViewerTool *self,
return;
if (gth_image_viewer_get_zoom_quality (viewer) == GTH_ZOOM_QUALITY_LOW)
- interp_type = GDK_INTERP_NEAREST;
+ interp_type = GDK_INTERP_TILES;
else
interp_type = GDK_INTERP_BILINEAR;
if (FLOAT_EQUAL (gth_image_viewer_get_zoom (viewer), 1.0))
- interp_type = GDK_INTERP_NEAREST;
+ interp_type = GDK_INTERP_TILES;
if (gdk_rectangle_intersect (&viewer->image_area, event_area, &paint_area))
gth_image_viewer_paint (viewer,
diff --git a/gthumb/gth-image-selector.c b/gthumb/gth-image-selector.c
index d913fe0..f8c6533 100644
--- a/gthumb/gth-image-selector.c
+++ b/gthumb/gth-image-selector.c
@@ -609,7 +609,7 @@ paint_background (GthImageSelector *self,
paint_area.y,
paint_area.width,
paint_area.height,
- GDK_INTERP_NEAREST);
+ GDK_INTERP_TILES);
}
@@ -634,7 +634,7 @@ paint_selection (GthImageSelector *self,
paint_area.y,
paint_area.width,
paint_area.height,
- GDK_INTERP_NEAREST);
+ GDK_INTERP_TILES);
}
@@ -655,7 +655,7 @@ paint_image (GthImageSelector *self,
paint_area.y,
paint_area.width,
paint_area.height,
- GDK_INTERP_NEAREST);
+ GDK_INTERP_TILES);
}
@@ -1253,7 +1253,7 @@ gth_image_selector_image_changed (GthImageViewerTool *base)
self->priv->pixbuf,
gdk_pixbuf_get_width (self->priv->pixbuf),
gdk_pixbuf_get_height (self->priv->pixbuf),
- GDK_INTERP_NEAREST,
+ GDK_INTERP_TILES,
128 /*196 FIXME: find a goob value */,
10,
0x00000000,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]