[gtk+/gtk-2-18] Set scale_num only once
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-18] Set scale_num only once
- Date: Thu, 26 Nov 2009 04:43:36 +0000 (UTC)
commit c412fc78d03ca67ab0b75eb98a45179beccab968
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Nov 25 23:39:31 2009 -0500
Set scale_num only once
This modifies the previous commit to be according the upstream libjpeg
maintainers recommendations. See bug 588740.
gdk-pixbuf/io-jpeg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk-pixbuf/io-jpeg.c b/gdk-pixbuf/io-jpeg.c
index 5d63af3..10b298d 100644
--- a/gdk-pixbuf/io-jpeg.c
+++ b/gdk-pixbuf/io-jpeg.c
@@ -921,8 +921,8 @@ gdk_pixbuf__jpeg_image_load_increment (gpointer data,
}
}
+ cinfo->scale_num = 1;
for (cinfo->scale_denom = 2; cinfo->scale_denom <= 8; cinfo->scale_denom *= 2) {
- cinfo->scale_num = 1;
jpeg_calc_output_dimensions (cinfo);
if (cinfo->output_width < width || cinfo->output_height < height) {
cinfo->scale_denom /= 2;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]