[gthumb] image dragger: use the abstract name for the filter



commit 20f6bdf0263478ee8c125ec726b8dd9d9654c418
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Fri Jun 28 20:36:02 2013 +0200

    image dragger: use the abstract name for the filter

 gthumb/cairo-scale.h       |    4 ++--
 gthumb/gth-image-dragger.c |    2 +-
 gthumb/gth-thumb-loader.c  |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gthumb/cairo-scale.h b/gthumb/cairo-scale.h
index 153a7d7..4e0b889 100644
--- a/gthumb/cairo-scale.h
+++ b/gthumb/cairo-scale.h
@@ -35,12 +35,12 @@ typedef enum /*< skip >*/ {
        SCALE_FILTER_POINT = 0,
        SCALE_FILTER_BOX,
        SCALE_FILTER_TRIANGLE,
-       SCALE_FILTER_LANCZOS,
+       SCALE_FILTER_LANCZOS_3,
        N_SCALE_FILTERS,
 
        SCALE_FILTER_FAST = SCALE_FILTER_POINT,
-       SCALE_FILTER_GOOD = SCALE_FILTER_BOX,
        SCALE_FILTER_BEST = SCALE_FILTER_TRIANGLE
+       SCALE_FILTER_GOOD = SCALE_FILTER_TRIANGLE,
 } scale_filter_t;
 
 
diff --git a/gthumb/gth-image-dragger.c b/gthumb/gth-image-dragger.c
index 0fbc73d..559e87b 100644
--- a/gthumb/gth-image-dragger.c
+++ b/gthumb/gth-image-dragger.c
@@ -333,7 +333,7 @@ _gth_image_dragger_scale_exec (GthAsyncTask *task,
        scale_data->scaled = _cairo_image_surface_scale (scale_data->image,
                                                         scale_data->new_width,
                                                         scale_data->new_height,
-                                                        SCALE_FILTER_TRIANGLE,
+                                                        SCALE_FILTER_GOOD,
                                                         task);
 
        return NULL;
diff --git a/gthumb/gth-thumb-loader.c b/gthumb/gth-thumb-loader.c
index 63d7ef2..7efe3cd 100644
--- a/gthumb/gth-thumb-loader.c
+++ b/gthumb/gth-thumb-loader.c
@@ -425,7 +425,7 @@ _cairo_image_surface_scale_for_thumbnail (cairo_surface_t *image,
                                          int              new_width,
                                          int              new_height)
 {
-       return _cairo_image_surface_scale (image, new_width, new_height, SCALE_FILTER_BOX, NULL);
+       return _cairo_image_surface_scale (image, new_width, new_height, SCALE_FILTER_GOOD, NULL);
 }
 
 


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