changeset 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 750a7e125546 5ecd51009072
files tools/libgfx.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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;