*** ilbmtoppm.c.orig Thu Dec 02 10:18:06 1993 --- ilbmtoppm.c Sun May 22 14:04:51 1994 *************** *** 21,26 **** --- 21,28 ---- ** 04/Oct/93: ** - multipalette support (PCHG chunk) ** - options -ignore, -isham, -isehb and -adjustcolors + ** 22/may/94: + ** - minor change: check first for 24 planes, then for HAM */ #include "ppm.h" *************** *** 215,220 **** --- 217,225 ---- viewportmodes |= fakeviewport; + if( bmhd->nPlanes == 24 ) + deep_to_ppm(ifp, bmhd); + else if( viewportmodes & vmHAM ) ham_to_ppm(ifp, bmhd, colormap, colors, pchginfo); else *************** *** 221,229 **** if( dcol != NULL ) direct_to_ppm(ifp, bmhd, dcol); else - if( bmhd->nPlanes == 24 ) - deep_to_ppm(ifp, bmhd); - else std_to_ppm(ifp, bmhd, colormap, colors, pchginfo, viewportmodes); body = 1; } --- 226,231 ----