Fixed 16/32 bit problem.
Fix c/o Peter Skarpetis, peters@serendipity-software.com.au
This commit is contained in:
parent
33f19258e4
commit
4338667646
@ -1,4 +1,4 @@
|
|||||||
/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_fax3.c,v 1.9 2000-03-17 20:33:44 warmerda Exp $ */
|
/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_fax3.c,v 1.10 2000-07-12 13:00:27 warmerda Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1990-1997 Sam Leffler
|
* Copyright (c) 1990-1997 Sam Leffler
|
||||||
@ -171,7 +171,7 @@ Fax3PreDecode(TIFF* tif, tsample_t s)
|
|||||||
sp->bitmap =
|
sp->bitmap =
|
||||||
TIFFGetBitRevTable(tif->tif_dir.td_fillorder != FILLORDER_LSB2MSB);
|
TIFFGetBitRevTable(tif->tif_dir.td_fillorder != FILLORDER_LSB2MSB);
|
||||||
if (sp->refruns) { /* init reference line to white */
|
if (sp->refruns) { /* init reference line to white */
|
||||||
sp->refruns[0] = (uint16) sp->b.rowpixels;
|
sp->refruns[0] = (uint32) sp->b.rowpixels;
|
||||||
sp->refruns[1] = 0;
|
sp->refruns[1] = 0;
|
||||||
}
|
}
|
||||||
return (1);
|
return (1);
|
||||||
@ -374,7 +374,7 @@ _TIFFFax3fillruns(u_char* buf, uint32* runs, uint32* erun, uint32 lastx)
|
|||||||
for (; runs < erun; runs += 2) {
|
for (; runs < erun; runs += 2) {
|
||||||
run = runs[0];
|
run = runs[0];
|
||||||
if (x+run > lastx || run > lastx )
|
if (x+run > lastx || run > lastx )
|
||||||
run = runs[0] = (uint16) (lastx - x);
|
run = runs[0] = (uint32) (lastx - x);
|
||||||
if (run) {
|
if (run) {
|
||||||
cp = buf + (x>>3);
|
cp = buf + (x>>3);
|
||||||
bx = x&7;
|
bx = x&7;
|
||||||
|
Loading…
Reference in New Issue
Block a user