Author: wblaszcz
Date: 2009-12-31 23:46:37 -0700 (Thu, 31 Dec 2009)
New Revision: 2152
Added:
trunk/gtk+/gtk+-2.18.5-jpeg7compatibility-1.patch
Log:
gtk+-2.18.5-jpeg7compatibility-1.patch
Added: trunk/gtk+/gtk+-2.18.5-jpeg7compatibility-1.patch
===================================================================
--- trunk/gtk+/gtk+-2.18.5-jpeg7compatibility-1.patch
(rev 0)
+++ trunk/gtk+/gtk+-2.18.5-jpeg7compatibility-1.patch 2010-01-01 06:46:37 UTC
(rev 2152)
@@ -0,0 +1,23 @@
+Submitted By: Guy Dalziel <gdalziel at linuxfromscratch dot org>
+Date: 2009-10-21
+Initial Package Version: 2.18.3
+Origin: Romain Perier <mrpouet at gentoo dot org>.
+Description: Fixes compatibility with libjpeg 7 which has changed the range of
allowable
+ scaling factors. The fix is designed to be backwards-compatible
with libjpeg
+ 6.
+
+diff -Naur gtk+-2.18.3.orig/gdk-pixbuf/io-jpeg.c
gtk+-2.18.3/gdk-pixbuf/io-jpeg.c
+--- gtk+-2.18.3.orig/gdk-pixbuf/io-jpeg.c 2009-10-09 06:00:43.000000000
+0100
++++ gtk+-2.18.3/gdk-pixbuf/io-jpeg.c 2009-10-21 17:42:01.772276783 +0100
+@@ -922,7 +922,11 @@
+ }
+
+ cinfo->scale_num = 1;
++#if JPEG_LIB_VERSION >= 70
++ for (cinfo->scale_denom = 2; cinfo->scale_denom <= 16;
cinfo->scale_denom *= 2) {
++#else
+ for (cinfo->scale_denom = 2; cinfo->scale_denom <= 8;
cinfo->scale_denom *= 2) {
++#endif
+ jpeg_calc_output_dimensions (cinfo);
+ if (cinfo->output_width < width ||
cinfo->output_height < height) {
+ cinfo->scale_denom /= 2;
--
http://linuxfromscratch.org/mailman/listinfo/patches
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page