Commit caa61df9 authored by Paolo Bacchilega's avatar Paolo Bacchilega

jpeg loader: use the nearest method for scaling the image

parent f88d7cb6
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment