From: sparky4 Date: Sat, 4 Apr 2015 05:15:55 +0000 (-0500) Subject: still workoing on palette updater! X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=a00549cc545e6f35c1314ca3396f5e99c201ba3d;p=16.git still workoing on palette updater! modified: pcxtest.exe modified: scroll.exe modified: src/lib/modex16.c modified: test.exe modified: test2.exe --- diff --git a/pcxtest.exe b/pcxtest.exe index 8c2c7f59..4ef6a9c9 100644 Binary files a/pcxtest.exe and b/pcxtest.exe differ diff --git a/scroll.exe b/scroll.exe index 5029fb97..dbbb9e57 100644 Binary files a/scroll.exe and b/scroll.exe differ diff --git a/src/lib/modex16.c b/src/lib/modex16.c index e2c95ac9..a7f37c45 100644 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -599,7 +599,7 @@ modexPalUpdate(bitmap_t *bmp, word *i, word qp, word aqoffset) word q=0; word qq=0; //word ii; - static word a[PAL_SIZE/3]; + static word a[PAL_SIZE]; word z=0, aq=0, aa=0, pp=0; //sword aqpw; @@ -645,9 +645,9 @@ 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));//+(aqoffset*3) - outp(PAL_DATA_REG, p[(a[qp]*3)+(aqoffset*3)]); - if((*i)+1==(qp*3)+3){ /*(*i)++;*/ break; } + 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; } } else { diff --git a/test.exe b/test.exe index f43b6704..dc4894df 100644 Binary files a/test.exe and b/test.exe differ diff --git a/test2.exe b/test2.exe index 569e75df..95a05440 100644 Binary files a/test2.exe and b/test2.exe differ