]> 4ch.mooo.com Git - 16.git/commitdiff
wwww still working on it! wwww
authorsparky4 <sparky4@cock.li>
Mon, 6 Apr 2015 19:21:57 +0000 (14:21 -0500)
committersparky4 <sparky4@cock.li>
Mon, 6 Apr 2015 19:21:57 +0000 (14:21 -0500)
modified:   data/g.pal
modified:   pcxtest.exe
modified:   scroll.exe
modified:   src/lib/modex16.c
modified:   test.exe
modified:   test2.exe

data/g.pal
pcxtest.exe
scroll.exe
src/lib/modex16.c
test.exe
test2.exe

index 43abfbf8b7eb049a2dd0e40ec628d85ab5908a54..a234f82cf8f66fa49d1057244aa661141c14cf8d 100644 (file)
Binary files a/data/g.pal and b/data/g.pal differ
index 03111e44215c87eeca0da061a9654a8ee6972750..a972d5307ece7f0994f544e8c2374761208de160 100644 (file)
Binary files a/pcxtest.exe and b/pcxtest.exe differ
index b8c4d834c6dfdf7388816c2313468b63f5d99eb8..4f6083f231f6c92b23b58f6aa36c21ccc5e33082 100644 (file)
Binary files a/scroll.exe and b/scroll.exe differ
index a7f37c4512b94bb747d90319730c20db6c7112d9..c290957a4f10ebc84d038e0ce5f1d0bd1606cb0a 100644 (file)
@@ -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);
index 50699f0160d8d4aaa861eacc856cb56c01f33121..90399227f155fb6ae842b97227f5e8b810c9e4a6 100644 (file)
Binary files a/test.exe and b/test.exe differ
index 9d8fc55fb0118831f9c531e448809206d191142b..42e957bc80f155cda2fa7a078d446ed439d0c523 100644 (file)
Binary files a/test2.exe and b/test2.exe differ