Skip to content
Snippets Groups Projects
Commit e6aee5b7 authored by Mirar (Pontus Hagland)'s avatar Mirar (Pontus Hagland)
Browse files

bugfixar

Rev: src/modules/image/togif.c:1.17
parent a38a9aa1
No related branches found
No related tags found
No related merge requests found
/* $Id: togif.c,v 1.16 1996/11/23 07:24:06 law Exp $ */
/* $Id: togif.c,v 1.17 1996/11/23 11:53:36 law Exp $ */
/*
togif
......@@ -533,8 +533,15 @@ void image_gif_begin(INT32 args)
buf.s.str=NULL;
initialize_buf(&buf);
if (ct)
{
colors=4; bpp=2;
while (colors<ct->numcol) { colors<<=1; bpp++; }
}
else
{
colors=256; bpp=8;
}
low_my_binary_strcat("GIF89a",6,&buf);
buf_word((unsigned short)THIS->xsize,&buf);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment