changeset 1625:c8afa3e6c413

Print an error/warning about PBM files that have half-brite set.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 16 May 2018 14:44:49 +0300
parents 9a8395b56d1a
children 1793fc1496da
files tools/libgfx.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tools/libgfx.c	Wed May 16 14:38:10 2018 +0300
+++ b/tools/libgfx.c	Wed May 16 14:44:49 2018 +0300
@@ -1936,6 +1936,10 @@
         if (iff.camg & IFF_CAMG_HALFBRITE)
         {
             void *ptmp;
+            if (!iff.planar)
+            {
+                dmErrorMsg("ILBM: Non-planar PBM file with Halfbrite enabled! This might not work.\n");
+            }
 
             if (iff.ncolors > 128)
             {