[gthumb] scale: fixed the POINT filter



commit f19fec8c6439b56f29322ca6761af8cfcf14d0ae
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Jun 29 16:04:47 2013 +0200

    scale: fixed the POINT filter
    
    do not reset the scale to 1

 gthumb/cairo-scale.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gthumb/cairo-scale.c b/gthumb/cairo-scale.c
index 78f08b9..ed2e662 100644
--- a/gthumb/cairo-scale.c
+++ b/gthumb/cairo-scale.c
@@ -300,10 +300,8 @@ horizontal_scale_transpose (cairo_surface_t *image,
 
        scale = MAX ((ScaleReal) 1.0 / scale_factor + EPSILON, 1.0);
        support = scale * resize_filter_get_support (resize_filter);
-       if (support < 0.5) {
+       if (support < 0.5)
                support = 0.5;
-               scale = 1.0;
-       }
 
        image_width = cairo_image_surface_get_width (image);
        scaled_width = cairo_image_surface_get_width (scaled);


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