author | ecalot
<ecalot> 2006-06-09 03:07:54 UTC |
committer | ecalot
<ecalot> 2006-06-09 03:07:54 UTC |
parent | d2268c53b4bfffe77a064dec65ca11c3d72637ef |
PR/src/lib/object/palette/pop2_4bit.c | +3 | -3 |
diff --git a/PR/src/lib/object/palette/pop2_4bit.c b/PR/src/lib/object/palette/pop2_4bit.c index 7134aa5..4ee54d2 100644 --- a/PR/src/lib/object/palette/pop2_4bit.c +++ b/PR/src/lib/object/palette/pop2_4bit.c @@ -81,9 +81,9 @@ void* objPalette_pop2_4bitsCreate(tBinary cont, int *error) { pal=(tPop2_4bitsPalette*)malloc(sizeof(tPop2_4bitsPalette)); for (i=0;i<16;i++) { - pal->c[i].r=cont.data[(i*3)+4]<<2; - pal->c[i].g=cont.data[(i*3)+5]<<2; - pal->c[i].b=cont.data[(i*3)+6]<<2; + pal->c[i].r=cont.data[(i*3)+0]<<2; + pal->c[i].g=cont.data[(i*3)+1]<<2; + pal->c[i].b=cont.data[(i*3)+2]<<2; } memcpy(pal->raw,cont.data,384);