mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
Set scale_num only once
This modifies the previous commit to be according the upstream libjpeg maintainers recommendations. See bug 588740.
This commit is contained in:
parent
b72c2143b0
commit
044f168507
@ -921,8 +921,8 @@ gdk_pixbuf__jpeg_image_load_increment (gpointer data,
|
||||
}
|
||||
}
|
||||
|
||||
for (cinfo->scale_denom = 2; cinfo->scale_denom <= 8; cinfo->scale_denom *= 2) {
|
||||
cinfo->scale_num = 1;
|
||||
for (cinfo->scale_denom = 2; cinfo->scale_denom <= 8; cinfo->scale_denom *= 2) {
|
||||
jpeg_calc_output_dimensions (cinfo);
|
||||
if (cinfo->output_width < width || cinfo->output_height < height) {
|
||||
cinfo->scale_denom /= 2;
|
||||
|
Loading…
Reference in New Issue
Block a user