File 0001-Fix-display-of-interlaced-GIF-images-with-giflib-v5.patch of Package kdelibs4.4442

From c4a7dc9bdb25e5f91a7b067636d38ff6c9bdc3bb Mon Sep 17 00:00:00 2001
From: Andreas Schwab <schwab@linux-m68k.org>
Date: Sun, 19 Jan 2014 11:20:39 +0100
Subject: [PATCH] Fix display of interlaced GIF images with giflib v5

With giflib v5 GIF images don't need to be deinterlaced manually
---
 khtml/imload/decoders/gifloader.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/khtml/imload/decoders/gifloader.cpp b/khtml/imload/decoders/gifloader.cpp
index 0c1acf5..6c61ff5 100644
--- a/khtml/imload/decoders/gifloader.cpp
+++ b/khtml/imload/decoders/gifloader.cpp
@@ -502,6 +502,7 @@ public:
             else
                 buf = new uchar[w];
                 
+#if GIFLIB_MAJOR < 5
             if (curFrame->ImageDesc.Interlace)
             {
                 // Interlaced. Considering we don't do progressive loading of gif's, 
@@ -551,6 +552,7 @@ public:
                 } // for pass..
             } // if interlaced
             else
+#endif
             {
                 for (int line = 0; line < h; ++line)
                 {
-- 
1.8.5.3

openSUSE Build Service is sponsored by