home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 1
/
FFMCD01.bin
/
bbs
/
graphics
/
ppmqvga.lha
/
PPMQVGA
/
src
/
ppm
/
ilbmtopmm.c.diff
next >
Wrap
Text File
|
1993-09-01
|
2KB
|
63 lines
*** ilbmtoppm.c.posted Thu Jul 08 20:40:31 1993
--- ilbmtoppm.c Thu Jul 29 10:38:19 1993
***************
*** 344,354 ****
}
- #define HAMCODE_CMAP 0 /* look up color in colormap */
- #define HAMCODE_BLUE 1 /* new blue component */
- #define HAMCODE_RED 2 /* new red component */
- #define HAMCODE_GREEN 3 /* new green component */
-
static void
ham_to_ppm(ifp, bmhd, colormap, colors)
FILE *ifp;
--- 344,349 ----
***************
*** 680,686 ****
cols = bmhd->w;
for( plane = 0; plane < nPlanes; plane++ ) {
! int mask, bit;
mask = 1 << plane;
read_ilbm_plane(ifp, cols, bmhd->compression);
--- 676,682 ----
cols = bmhd->w;
for( plane = 0; plane < nPlanes; plane++ ) {
! int mask, cbit;
mask = 1 << plane;
read_ilbm_plane(ifp, cols, bmhd->compression);
***************
*** 688,700 ****
ilp = ilbmrow;
chp = chunkyrow;
! bit = 7;
! for( col = 0; col < cols; col++, bit--, chp++ ) {
! if( bit < 0 ) {
! bit = 7;
ilp++;
}
! if( *ilp & bit_mask[bit] )
*chp |= mask;
else
*chp &= ~mask;
--- 684,696 ----
ilp = ilbmrow;
chp = chunkyrow;
! cbit = 7;
! for( col = 0; col < cols; col++, cbit--, chp++ ) {
! if( cbit < 0 ) {
! cbit = 7;
ilp++;
}
! if( *ilp & bit_mask[cbit] )
*chp |= mask;
else
*chp &= ~mask;