# HG changeset patch # User Matti Hamalainen # Date 1540536985 -10800 # Node ID b137d324e13f79a740ebc8abc017b90fe640a255 # Parent 307a52e0dc04f7c4e39e1104ac298522065dee63 Force 8 bitplanes for IFF PBM images. diff -r 307a52e0dc04 -r b137d324e13f tools/libgfx.c --- a/tools/libgfx.c Fri Oct 26 09:54:51 2018 +0300 +++ b/tools/libgfx.c Fri Oct 26 09:56:25 2018 +0300 @@ -2084,6 +2084,9 @@ "Non-paletted IFF is not supported.\n"); } + if (!spec->planar && spec->nplanes < 8) + spec->nplanes = 8; + // Setup headers iff.bmhd.x = 0; iff.bmhd.y = 0;