X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8414a40c52191d4c7cfeea74df22d9d64cbec415..b736d59eb531794e6b1cef2b4997c517569ff0dd:/src/tiff/tools/gif2tiff.c diff --git a/src/tiff/tools/gif2tiff.c b/src/tiff/tools/gif2tiff.c index ae42ba8599..539e85e8b7 100644 --- a/src/tiff/tools/gif2tiff.c +++ b/src/tiff/tools/gif2tiff.c @@ -1,4 +1,3 @@ -/* $Id$ */ /* * Copyright (c) 1990-1997 Sam Leffler @@ -44,6 +43,10 @@ # include #endif +#ifdef NEED_LIBPORT +# include "libport.h" +#endif + #include "tiffio.h" #define GIFGAMMA (1.5) /* smaller makes output img brighter */ @@ -250,7 +253,7 @@ readscreen(void) global = buf[4] & 0x80; if (global) { globalbits = (buf[4] & 0x07) + 1; - fread(globalmap,3,1< height-row) { + rowsperstrip = height-row; + stripsize = TIFFVStripSize(tif, rowsperstrip); + } if (TIFFWriteEncodedStrip(tif, strip, newras+row*width, stripsize) < 0) break; strip++; @@ -513,3 +520,10 @@ rasterize(int interleaved, char* mode) } /* vim: set ts=8 sts=8 sw=8 noet: */ +/* + * Local Variables: + * mode: c + * c-basic-offset: 8 + * fill-column: 78 + * End: + */