From: sparky4 Date: Mon, 6 Apr 2015 19:21:57 +0000 (-0500) Subject: wwww still working on it! wwww X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=5bd07757195aec7f1f03c2176e7a294a4c4de173;p=16.git wwww still working on it! wwww modified: data/g.pal modified: pcxtest.exe modified: scroll.exe modified: src/lib/modex16.c modified: test.exe modified: test2.exe --- diff --git a/data/g.pal b/data/g.pal index 43abfbf8..a234f82c 100644 Binary files a/data/g.pal and b/data/g.pal differ diff --git a/pcxtest.exe b/pcxtest.exe index 03111e44..a972d530 100644 Binary files a/pcxtest.exe and b/pcxtest.exe differ diff --git a/scroll.exe b/scroll.exe index b8c4d834..4f6083f2 100644 Binary files a/scroll.exe and b/scroll.exe differ diff --git a/src/lib/modex16.c b/src/lib/modex16.c index a7f37c45..c290957a 100644 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -812,8 +812,8 @@ void chkcolor(bitmap_t *bmp, word *q, word *a, word *aa, word *z, word *i/*, wor // printf("\n z: %d\n", (*z)); // printf(" q: %d\n", (*q)); // printf(" z+q: %d\n\n", ((*z)+(*q))); - if((*z)%3==0) - { + //if((*z)%3==0) + //{ //---- if(pal[(*z)]==pal[(*z)+3] && pal[(*z)+1]==pal[(*z)+4] && pal[(*z)+2]==pal[(*z)+5]) if((*z)==(*i)) { @@ -845,8 +845,10 @@ void chkcolor(bitmap_t *bmp, word *q, word *a, word *aa, word *z, word *i/*, wor // printf(" z : %d [%02d][%02d][%02d] offset value~\n", (*z)/3, pal[(*z)], pal[(*z)+1], pal[(*z)+2]); //++++ (*i)--; // (*z)--; - a[(((*z)+(*q))/3)]=zz/3; - (*aa)=(((*z)+(*q))/3); + + //expand dong here! + a[(((*z)+(*q)))]=zz; + (*aa)=(((*z)+(*q))); printf("!! a[%02d]: %d\n", (((*z)+(*q))/3), zz/3); // printf("\n aa: %d\n\n", (*aa)); // printf(" a[%02d]=(%02d) offset array i think the palette should be updated again~\n", ((*z)+(*q))/3, a[((*z)+(*q))/3]); @@ -866,7 +868,7 @@ void chkcolor(bitmap_t *bmp, word *q, word *a, word *aa, word *z, word *i/*, wor //printf("\nz: %d\n", z); //printf("q: %d\n", q); //printf("zz: %d\n", zz); - } + //} } printf("2 (*z): %d\n", (*z)/3); printf("2 (*i): %d\n", (*i)/3); diff --git a/test.exe b/test.exe index 50699f01..90399227 100644 Binary files a/test.exe and b/test.exe differ diff --git a/test2.exe b/test2.exe index 9d8fc55f..42e957bc 100644 Binary files a/test2.exe and b/test2.exe differ