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