[gthumb] jpeg loader: use the nearest method for scaling the image
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] jpeg loader: use the nearest method for scaling the image
- Date: Sun, 30 Jun 2013 08:42:09 +0000 (UTC)
commit caa61df9e35293987ebbdb07bac0baba0b5e3ead
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Jun 29 14:38:57 2013 +0200
jpeg loader: use the nearest method for scaling the image
extensions/cairo_io/cairo-image-surface-jpeg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/extensions/cairo_io/cairo-image-surface-jpeg.c b/extensions/cairo_io/cairo-image-surface-jpeg.c
index 54985fb..a846999 100644
--- a/extensions/cairo_io/cairo-image-surface-jpeg.c
+++ b/extensions/cairo_io/cairo-image-surface-jpeg.c
@@ -543,7 +543,7 @@ _cairo_image_surface_create_from_jpeg (GInputStream *istream,
width = destination_width;
height = destination_height;
scale_keeping_ratio (&width, &height, requested_size, requested_size, TRUE);
- scaled = _cairo_image_surface_scale (surface, width, height, SCALE_FILTER_BEST, NULL);
+ scaled = _cairo_image_surface_scale_nearest (surface, width, height);
cairo_surface_destroy (surface);
surface = scaled;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]