added palette bit shifting
authorecalot <ecalot>
Mon, 21 Jun 2004 20:56:59 +0000 (20:56 +0000)
committerecalot <ecalot>
Mon, 21 Jun 2004 20:56:59 +0000 (20:56 +0000)
FP/src/out/output.c

index 886e0d1f05c1abe9fcfd564d0b5b33a3d15102fe..193186cdf65df6817bf0989f2ea3f9f6be1afecf 100644 (file)
@@ -65,7 +65,7 @@ void* outputLoadBitmap(unsigned char* data, int size, unsigned char* palette, in
        printf("outputLoadBitmap: invert=%d. transparent=%d. size=%d\n",invert,firstColorTransparent,size);
 
        for (i=0;i<16;i++) {
-               printf("rgb[%d]=(%d,%d,%d) #%02x%02x%02x\n",i+1,palette[3*i],palette[3*i+1],palette[3*i+2],palette[3*i],palette[3*i+1],palette[3*i+2]);
+               printf("rgb[%d]=(%d,%d,%d) #%02x%02x%02x\n",i+1,palette[3*i],palette[3*i+1],palette[3*i+2],palette[3*i]<<2,palette[3*i+1]<<2,palette[3*i+2]<<2);
        }
 
        /* Notes: