about summary refs log tree commit diff
path: root/converter/other/pnmtopalm/pnmtopalm.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2017-09-23 02:12:00 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2017-09-23 02:12:00 +0000
commit1b89bafaa8d9243a40d90bc1977bfb7167260871 (patch)
tree8ec5726c8fdb560e409bdf2dde19e9723b94e6cc /converter/other/pnmtopalm/pnmtopalm.c
parentefd555a4bef415a697e5c6996711aaeaa2daaf64 (diff)
downloadnetpbm-mirror-1b89bafaa8d9243a40d90bc1977bfb7167260871.tar.gz
netpbm-mirror-1b89bafaa8d9243a40d90bc1977bfb7167260871.tar.xz
netpbm-mirror-1b89bafaa8d9243a40d90bc1977bfb7167260871.zip
Fix bug: bits per pixel limited to 4 for grayscale
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3067 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/pnmtopalm/pnmtopalm.c')
-rw-r--r--converter/other/pnmtopalm/pnmtopalm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/converter/other/pnmtopalm/pnmtopalm.c b/converter/other/pnmtopalm/pnmtopalm.c
index 29c80094..c213cb43 100644
--- a/converter/other/pnmtopalm/pnmtopalm.c
+++ b/converter/other/pnmtopalm/pnmtopalm.c
@@ -235,8 +235,6 @@ determinePalmFormat(unsigned int         const cols,
             for (*bppP = 1;  (1 << *bppP) < maxval;  *bppP *= 2)
                 ;
         }
-        if (*bppP > 4)
-            *bppP = 4;
         if (verbose)
             pm_message("output is grayscale %d bits-per-pixel", *bppP);
         *directColorP = FALSE;