]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 23 Mar 2010 13:59:54 +0000 (13:59 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 23 Mar 2010 13:59:54 +0000 (13:59 +0000)
coders/psd.c

index 113ffd41fa8fbe0e7a61c50f0bc86d4aad8c4d65..553a201700f3fc7264b24f280d282d2515d33bbe 100644 (file)
@@ -335,17 +335,17 @@ static ssize_t DecodePSDPixels(const size_t number_compact_pixels,
         }
         case 4:
         {
-          *pixels++=(pixel >> 4) & 0xff;
-          *pixels++=(pixel & 0x0f) & 0xff;
+          *pixels++=(*compact_pixels >> 4) & 0xff;
+          *pixels++=(*compact_pixels & 0x0f) & 0xff;
           i+=2;
           break;
         }
         case 2:
         {
-          *pixels++=(pixel >> 6) & 0x03;
-          *pixels++=(pixel >> 4) & 0x03;
-          *pixels++=(pixel >> 2) & 0x03;
-          *pixels++=(pixel & 0x03) & 0x03;
+          *pixels++=(*compact_pixels >> 6) & 0x03;
+          *pixels++=(*compact_pixels >> 4) & 0x03;
+          *pixels++=(*compact_pixels >> 2) & 0x03;
+          *pixels++=(*compact_pixels & 0x03) & 0x03;
           i+=4;
           break;
         }