From 60bed23e449fb5296f73e5cd6bddb0d8d7f0eb4c Mon Sep 17 00:00:00 2001 From: sparky4 Date: Tue, 14 Apr 2015 11:18:54 -0500 Subject: [PATCH] wwww workings!! wwww modified: src/lib/modex16.c modified: src/lib/modex16.h --- src/lib/modex16.c | 52 +++++++++++++++++++++++++++++------------------ src/lib/modex16.h | 7 +++++++ 2 files changed, 39 insertions(+), 20 deletions(-) diff --git a/src/lib/modex16.c b/src/lib/modex16.c index 36b31d1a..fa13d365 100644 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -593,13 +593,12 @@ modexPalWhite() { void modexPalUpdate(bitmap_t *bmp, word *i, word qp, word aqoffset) { -//---- static word count=0; byte *p = bmp->palette; word w=0; word q=0; word qq=0; //word ii; - static word a[PAL_SIZE]; + static word a[PAL_SIZE/3]; //palette array of change values! word z=0, aq=0, aa=0, pp=0; //sword aqpw; @@ -645,8 +644,8 @@ modexPalUpdate(bitmap_t *bmp, word *i, word qp, word aqoffset) //printf(" (*i)=%d\n", (*i)/3); //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! +//0000 printf(" %d's color=%d\n", (*i), (a[qp])*3);//+(aqoffset*3) +//0000 outp(PAL_DATA_REG, p[((a[qp])*3)]);// fix this shit! if((*i)+1==(qp*3)+3){ w++; /*(*i)++;*/ break; } } else @@ -717,17 +716,28 @@ aqpee: for(lq=0; lqoffset for this spot! + NO! wwww */ + + + /* + Facking bloody point the values of the changed palette to correct values.... major confusion! wwww + */ + + + + + //(offset/bmp->offset)*bmp->offset - + printf("%02d ",bmp->data[lq]+bmp->offset); + if(lq > 0 && lq%bmp->width==0) printf("\n"); //printf("%02d_", bmp->data[lq]+bmp->offset); /*if(bmp->data[lq]+bmp->offset==aq) { @@ -813,12 +823,14 @@ void chkcolor(bitmap_t *bmp, word *q, word *a, word *aa, word *z, word *i/*, wor 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"); //check palette for dups for(; (*z)