X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_vlpal.c;h=032f2b7a947c7b875ae0a9daba44d01353bd73e2;hb=e6e39c020391044b5841c6bfb6b8240c68f31d6a;hp=02e522988812abeb0e718a29a5175d4cc13a0eb3;hpb=9319e98efc6504bcf798fd737be25573cc0420e1;p=16.git diff --git a/src/lib/16_vlpal.c b/src/lib/16_vlpal.c index 02e52298..032f2b7a 100755 --- a/src/lib/16_vlpal.c +++ b/src/lib/16_vlpal.c @@ -24,67 +24,41 @@ //color checker~ //i want to make another vesion that checks the palette when the palette is being appened~ -void modexchkcolor(imgtestpal_t *bmp, word *q, word *a, word *aa, word *z, word *i/*, word *offset*/) +void modexchkcolor(imgtestpal_t *bmp, word *q, word *a, word *aa, word *z, word *i/*, word *offset*/, global_game_variables_t *gv) { - byte *pal; + byte *pal=&(gv->video.palette); word zz=0; - pal = modexNewPal(); - modexPalSave(pal); -#ifdef BEVERBOSEPALCHECK - printf("q: %02d\n", (*q));// - - printf("chkcolor start~\n"); - printf("1 (*z): %d\n", (*z)/3); - printf("1 (*i): %d\n", (*i)/3); - printf("1 offset of color in palette (*q): %d\n", (*q)/3);// - printf("wwwwwwwwwwwwwwww\n"); -#endif + //pal = modexNewPal(); +// modexPalSave(pal); + CHKCOLDBGOUT1 //check palette for dups for(; (*z)palette; word w=0; @@ -220,7 +179,7 @@ VL_palette(imgtestpal_t *bmp, byte *p, word *i, word qp, word aqoffset) printf("1(*i)=%02d\n", (*i)/3);// printf("1z=%02d\n", z/3);// #endif - modexchkcolor(bmp, &q, &a, &aa, &z, i); + modexchkcolor(bmp, &q, &a, &aa, &z, i, gv); #ifdef BEVERBOSEPALCHECK printf("2(*i)=%02d\n", (*i)/3); printf("2z=%02d\n", z/3); @@ -294,7 +253,7 @@ printf(" aq=%02d\n", aq);// printf(" aa=%02d\n", aa);// #endif //update the palette~ - VL_palette(bmp, p, &pp, aq, aqoffset); + VL_palette(bmp, p, &pp, aq, aqoffset, gv); (*i)=pp; if(aq