pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/libungif fixing bugs in util/gif2iris.c, clos...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5967bda1ebef
branches:  trunk
changeset: 490785:5967bda1ebef
user:      schwarz <schwarz%pkgsrc.org@localhost>
date:      Sun Mar 20 11:07:33 2005 +0000

description:
fixing bugs in util/gif2iris.c, closing PR#26161

diffstat:

 graphics/libungif/distinfo         |   3 ++-
 graphics/libungif/patches/patch-aa |  25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletions(-)

diffs (41 lines):

diff -r 75d24260300e -r 5967bda1ebef graphics/libungif/distinfo
--- a/graphics/libungif/distinfo        Sun Mar 20 11:06:27 2005 +0000
+++ b/graphics/libungif/distinfo        Sun Mar 20 11:07:33 2005 +0000
@@ -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 -r 75d24260300e -r 5967bda1ebef graphics/libungif/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/libungif/patches/patch-aa        Sun Mar 20 11:07:33 2005 +0000
@@ -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);
+ 



Home | Main Index | Thread Index | Old Index