diff 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
line wrap: on
line diff
--- 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;