about summary refs log tree commit diff
path: root/converter
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2024-03-11 18:22:23 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2024-03-11 18:22:23 +0000
commit9f9dc3b09d30ab6620ee680029913b6048e87580 (patch)
tree6017c50918137d2c03d09c822e1cb2d0445d6760 /converter
parentfd0e007d67e6dbab2883eb99871b9609ca814b11 (diff)
downloadnetpbm-mirror-9f9dc3b09d30ab6620ee680029913b6048e87580.tar.gz
netpbm-mirror-9f9dc3b09d30ab6620ee680029913b6048e87580.tar.xz
netpbm-mirror-9f9dc3b09d30ab6620ee680029913b6048e87580.zip
Release 11.02.07
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@4868 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter')
-rw-r--r--converter/other/infotopam.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/converter/other/infotopam.c b/converter/other/infotopam.c
index 24c4d776..3467891c 100644
--- a/converter/other/infotopam.c
+++ b/converter/other/infotopam.c
@@ -301,14 +301,14 @@ addBitplane(unsigned char * const icon,
     unsigned int j;
 
     for (i = j = 0; i < bpsize; ++i, j += 8) {
-        icon[j+0] = (icon[j+0] << 1) | ((buff[i] >> 0) & 0x01);
-        icon[j+1] = (icon[j+1] << 1) | ((buff[i] >> 1) & 0x01);
-        icon[j+2] = (icon[j+2] << 1) | ((buff[i] >> 2) & 0x01);
-        icon[j+3] = (icon[j+3] << 1) | ((buff[i] >> 3) & 0x01);
-        icon[j+4] = (icon[j+4] << 1) | ((buff[i] >> 4) & 0x01);
-        icon[j+5] = (icon[j+5] << 1) | ((buff[i] >> 5) & 0x01);
-        icon[j+6] = (icon[j+6] << 1) | ((buff[i] >> 6) & 0x01);
-        icon[j+7] = (icon[j+7] << 1) | ((buff[i] >> 7) & 0x01);
+        icon[j+0] = (icon[j+0] << 1) | ((buff[i] >> 7) & 0x01);
+        icon[j+1] = (icon[j+1] << 1) | ((buff[i] >> 6) & 0x01);
+        icon[j+2] = (icon[j+2] << 1) | ((buff[i] >> 5) & 0x01);
+        icon[j+3] = (icon[j+3] << 1) | ((buff[i] >> 4) & 0x01);
+        icon[j+4] = (icon[j+4] << 1) | ((buff[i] >> 3) & 0x01);
+        icon[j+5] = (icon[j+5] << 1) | ((buff[i] >> 2) & 0x01);
+        icon[j+6] = (icon[j+6] << 1) | ((buff[i] >> 1) & 0x01);
+        icon[j+7] = (icon[j+7] << 1) | ((buff[i] >> 0) & 0x01);
     }
 }