From xemacs-m  Wed Apr 16 02:51:03 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id CAA07743
	for <xemacs-beta@xemacs.org>; Wed, 16 Apr 1997 02:51:02 -0500 (CDT)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.5/8.8.5) id BAA01501;
	Wed, 16 Apr 1997 01:03:48 -0700
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: Crash Xemacs-w3 fast
References: <Pine.LNX.3.95.970414230520.4282B-100000@argon.roma2.infn.it> <rvragcz2ob.fsf@sdnp5.ucsd.edu> <m23esrqvh3.fsf@altair.xemacs.org>
X-Url: http://www.miranova.com/%7Esteve/
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
In-Reply-To: Steven L Baur's message of 16 Apr 1997 00:26:32 -0700
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
Date: 16 Apr 1997 01:03:46 -0700
Message-ID: <m2zpuzpf6l.fsf@altair.xemacs.org>
Lines: 39
X-Mailer: Gnus v5.4.45/XEmacs 20.1

Somebody who is a graphics format expert please tell me why the GIF I
posted doesn't appear to have a colormap.  When it's given to
xloadimage it says:

/tmp/emacs26074.a26074 is a 60x90 GIF89a image with 256 colors
  Default gamma for IRGB image is  2.20
  Compressing colormap...151 unique colors
  Building XImage...done

XV cannot handle it, and displays it identically to XEmacs when the
following patch is applied:

Index: src/dgif_lib.c
===================================================================
RCS file: /usr/local/xemacs/xemacs-20.0/src/dgif_lib.c,v
retrieving revision 1.2
diff -u -r1.2 dgif_lib.c
--- dgif_lib.c	1997/03/22 06:03:23	1.2
+++ dgif_lib.c	1997/04/16 07:37:10
@@ -240,6 +240,15 @@
 	    GifFile->SColorMap->Colors[i].Green = Buf[1];
 	    GifFile->SColorMap->Colors[i].Blue = Buf[2];
 	}
+    } else {
+	/* XEmacs assumes we always have a colormap */
+	GifFile->SColorMap = MakeMapObject(2, NULL);
+	GifFile->SColorMap->Colors[0].Red = 0;
+	GifFile->SColorMap->Colors[0].Green = 0;
+	GifFile->SColorMap->Colors[0].Blue = 0;
+	GifFile->SColorMap->Colors[1].Red = 0xff;
+	GifFile->SColorMap->Colors[1].Green = 0xff;
+	GifFile->SColorMap->Colors[1].Blue = 0xff;
     }
 
     return GIF_OK;

-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.

