We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9300ced + 0e0afd4 commit eedac36Copy full SHA for eedac36
src/libImaging/Convert.c
@@ -1041,7 +1041,7 @@ static void
1041
p2i(UINT8* out_, const UINT8* in, int xsize, const UINT8* palette)
1042
{
1043
int x;
1044
- for (x = 0; x < xsize; x++, in += 2, out_ += 4) {
+ for (x = 0; x < xsize; x++, out_ += 4) {
1045
INT32 v = L(&palette[in[x]*4]) / 1000;
1046
memcpy(out_, &v, sizeof(v));
1047
}
@@ -1060,7 +1060,7 @@ static void
1060
p2f(UINT8* out_, const UINT8* in, int xsize, const UINT8* palette)
1061
1062
1063
1064
FLOAT32 v = L(&palette[in[x]*4]) / 1000.0F;
1065
1066
0 commit comments