comparison tools/libgfx.c @ 2026:b137d324e13f

Force 8 bitplanes for IFF PBM images.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 26 Oct 2018 09:56:25 +0300
parents 307a52e0dc04
children 3829c292df02
comparison
equal deleted inserted replaced
2025:307a52e0dc04 2026:b137d324e13f
2082 { 2082 {
2083 return dmError(DMERR_NOT_SUPPORTED, 2083 return dmError(DMERR_NOT_SUPPORTED,
2084 "Non-paletted IFF is not supported.\n"); 2084 "Non-paletted IFF is not supported.\n");
2085 } 2085 }
2086 2086
2087 if (!spec->planar && spec->nplanes < 8)
2088 spec->nplanes = 8;
2089
2087 // Setup headers 2090 // Setup headers
2088 iff.bmhd.x = 0; 2091 iff.bmhd.x = 0;
2089 iff.bmhd.y = 0; 2092 iff.bmhd.y = 0;
2090 iff.bmhd.w = img->width * spec->scaleX; 2093 iff.bmhd.w = img->width * spec->scaleX;
2091 iff.bmhd.h = img->height * spec->scaleY; 2094 iff.bmhd.h = img->height * spec->scaleY;