diff options
author | schwarz <schwarz> | 2005-03-20 11:07:33 +0000 |
---|---|---|
committer | schwarz <schwarz> | 2005-03-20 11:07:33 +0000 |
commit | 32ab2b5462070c115fcd1e516ce70076d2172709 (patch) | |
tree | 3a669f878e20b28f9d8951bd4ff60a84f045059e /graphics | |
parent | 8139f7fb6e17249e144d113de20f87fb57ffc5c9 (diff) | |
download | pkgsrc-32ab2b5462070c115fcd1e516ce70076d2172709.tar.gz |
fixing bugs in util/gif2iris.c, closing PR#26161
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/libungif/distinfo | 3 | ||||
-rw-r--r-- | graphics/libungif/patches/patch-aa | 25 |
2 files changed, 27 insertions, 1 deletions
diff --git a/graphics/libungif/distinfo b/graphics/libungif/distinfo index 8454b173978..daa2eddb399 100644 --- a/graphics/libungif/distinfo +++ b/graphics/libungif/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.8 2005/02/24 08:45:09 agc Exp $ +$NetBSD: distinfo,v 1.9 2005/03/20 11:07:33 schwarz Exp $ SHA1 (libungif-4.1.3.tar.bz2) = 04aab31b3e9e719a80320667bc23b3ee35505a34 RMD160 (libungif-4.1.3.tar.bz2) = 287abf7560f5394e62c475f0d722938842ba6786 Size (libungif-4.1.3.tar.bz2) = 439960 bytes +SHA1 (patch-aa) = eb2d1f1d21e19adc8bc33dcbd24be5c20560f4fd SHA1 (patch-ab) = a93e2fe0a93aacda4566e723e681fd316fe2cb2a diff --git a/graphics/libungif/patches/patch-aa b/graphics/libungif/patches/patch-aa new file mode 100644 index 00000000000..2032bb7b68c --- /dev/null +++ b/graphics/libungif/patches/patch-aa @@ -0,0 +1,25 @@ +$NetBSD: patch-aa,v 1.7 2005/03/20 11:07:33 schwarz Exp $ + +--- util/gif2iris.c.orig 2005-03-19 17:50:38.000000000 +0100 ++++ util/gif2iris.c 2005-03-19 18:06:18.000000000 +0100 +@@ -30,6 +30,9 @@ + #include "gl.h" + #include "device.h" + ++#ifndef __MSDOS__ ++#include <stdlib.h> ++#endif + #include <stdio.h> + #include <ctype.h> + #include <string.h> +@@ -229,8 +232,8 @@ + BackGround = GifFile->SBackGroundColor; + ColorMap = (GifFile->Image.ColorMap ? GifFile->Image.ColorMap : + GifFile->SColorMap); +- ColorMapSize = 1 << (GifFile->Image.ColorMap ? GifFile->Image.BitsPerPixel : +- GifFile->SBitsPerPixel); ++ ColorMapSize = 1 << (GifFile->Image.ColorMap ? GifFile->Image.ColorMap->BitsPerPixel : ++ GifFile->SColorMap->BitsPerPixel); + GifQprintf("\n"); + Screen2Iris(ScreenBuffer, GifFile->SWidth, GifFile->SHeight); + |