summaryrefslogtreecommitdiff
path: root/x11/kdelibs4
diff options
context:
space:
mode:
authormarkd <markd>2014-08-11 21:17:20 +0000
committermarkd <markd>2014-08-11 21:17:20 +0000
commit06f4a1dfb809392a1bbfd1f59df961138b6f99bc (patch)
tree18cce87e2e100d5574d7f06121511edcdcd08bc5 /x11/kdelibs4
parent0af21ffc54c6fd921dddffe84472f10fb18331db (diff)
downloadpkgsrc-06f4a1dfb809392a1bbfd1f59df961138b6f99bc.tar.gz
Fix display of interlaced gifs with giflib5
Diffstat (limited to 'x11/kdelibs4')
-rw-r--r--x11/kdelibs4/patches/patch-khtml_imload_decoders_gifloader.cpp20
1 files changed, 18 insertions, 2 deletions
diff --git a/x11/kdelibs4/patches/patch-khtml_imload_decoders_gifloader.cpp b/x11/kdelibs4/patches/patch-khtml_imload_decoders_gifloader.cpp
index 900576c7ff8..479e8af2382 100644
--- a/x11/kdelibs4/patches/patch-khtml_imload_decoders_gifloader.cpp
+++ b/x11/kdelibs4/patches/patch-khtml_imload_decoders_gifloader.cpp
@@ -1,4 +1,4 @@
-$NetBSD: patch-khtml_imload_decoders_gifloader.cpp,v 1.1 2014/05/18 12:27:51 markd Exp $
+$NetBSD: patch-khtml_imload_decoders_gifloader.cpp,v 1.2 2014/08/11 21:17:20 markd Exp $
Fix build with giflib 5.1.
@@ -31,7 +31,23 @@ Fix build with giflib 5.1.
return Error;
}
}
-@@ -574,7 +574,7 @@ public:
+@@ -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)
+ {
+@@ -574,7 +576,7 @@ public:
frame0->animProvider = new GIFAnimProvider(frame0, image, frameProps, bgColor);
}