Skip to content

Commit

Permalink
fix HSP palette output
Browse files Browse the repository at this point in the history
  • Loading branch information
EdouardBERGE committed Dec 7, 2024
1 parent 8732494 commit cabc50a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion convgeneric.c
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ printf(KBLUE"expand image to %d\n"KNORMAL,photo->height);


printf("paletteplus: defw ");
for (i=parameter->hsp;i<maxcoul;i++) {
for (i=parameter->hsp;i<maxcoul+parameter->hsp;i++) {
printf("%s#%03X",i-parameter->hsp?",":"",(palette[i*3+0]&0xF0)|((palette[i*3+1]>>4)<<8)|(palette[i*3+2]>>4));
}
printf("\n");
Expand Down

0 comments on commit cabc50a

Please sign in to comment.