- //printf(" (*i)=%d\n", (*i)/3);
- printf(" (*i)=%d bmp->offset*3=%d (qp*3)=%d\n", (*i), (bmp->offset), (qp));
- printf(" %d's color=%d\n", (*i)/3, ((*i)-(bmp->offset)+(qp*3)));
- //printf(" %d's color2=%d\n", (*i)/3, ((*i)-(bmp->offset*3))-(qp*3));
- //outp(PAL_DATA_REG, p[((*i)-(bmp->offset*3))+()]);
- (*i)++;
- break;
+ //printf(" (*i)=%d a[%d]=%d\n", (*i), qp, a[qp]);
+ printf(" %d's color=%d\n", (*i), (a[qp]-(bmp->offset*3)+qp));
+ //outp(PAL_DATA_REG, p[((a[qp])-(bmp->offset*3)+qp)]);// fix this shit!
+ if((*i)+1==(qp)+3){ w++; /*(*i)++;*/ break; }