From b0d30c53213a7b0d8b00e1f7a25926c8c8de1544 Mon Sep 17 00:00:00 2001 From: "Mirar (Pontus Hagland)" <pike@sort.mirar.org> Date: Thu, 20 Nov 1997 23:26:57 +0100 Subject: [PATCH] unused GCE transparent index is 0, not -1 Rev: src/modules/Image/encodings/gif.c:1.19 --- src/modules/Image/encodings/gif.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/Image/encodings/gif.c b/src/modules/Image/encodings/gif.c index 72576ee982..b123219086 100644 --- a/src/modules/Image/encodings/gif.c +++ b/src/modules/Image/encodings/gif.c @@ -1,9 +1,9 @@ -/* $Id: gif.c,v 1.18 1997/11/11 22:17:53 mirar Exp $ */ +/* $Id: gif.c,v 1.19 1997/11/20 22:26:57 mirar Exp $ */ /* **! module Image **! note -**! $Id: gif.c,v 1.18 1997/11/11 22:17:53 mirar Exp $ +**! $Id: gif.c,v 1.19 1997/11/20 22:26:57 mirar Exp $ **! submodule GIF **! **! This submodule keep the GIF encode/decode capabilities @@ -31,7 +31,7 @@ #include "stralloc.h" #include "global.h" -RCSID("$Id: gif.c,v 1.18 1997/11/11 22:17:53 mirar Exp $"); +RCSID("$Id: gif.c,v 1.19 1997/11/20 22:26:57 mirar Exp $"); #include "pike_macros.h" #include "object.h" #include "constants.h" @@ -821,7 +821,7 @@ CHRONO("gif render_block begin"); /* write gce control block */ { push_int(transparency); - push_int(alphaidx); + if (alphaidx!=-1) push_int(alphaidx); else push_int(0); push_int(delay); push_int(user_input); push_int(disposal); -- GitLab