]> 4ch.mooo.com Git - 16.git/commitdiff
still workoing on palette updater!
authorsparky4 <sparky4@cock.li>
Sat, 4 Apr 2015 05:15:55 +0000 (00:15 -0500)
committersparky4 <sparky4@cock.li>
Sat, 4 Apr 2015 05:15:55 +0000 (00:15 -0500)
modified:   pcxtest.exe
modified:   scroll.exe
modified:   src/lib/modex16.c
modified:   test.exe
modified:   test2.exe

pcxtest.exe
scroll.exe
src/lib/modex16.c
test.exe
test2.exe

index 8c2c7f59c12e543378501d4f4ddacc68be4a0c01..4ef6a9c934e6b685b2e586bb95d037b3f353fbbf 100644 (file)
Binary files a/pcxtest.exe and b/pcxtest.exe differ
index 5029fb971cbda15433273d9ff8add451b7ab312a..dbbb9e57005122fb470ddc1a91aa1ce9019180eb 100644 (file)
Binary files a/scroll.exe and b/scroll.exe differ
index e2c95ac95a018d654725758021d594f872f29228..a7f37c4512b94bb747d90319730c20db6c7112d9 100644 (file)
@@ -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
                        {
index f43b6704b8b1252d6d9992a5ff0030246f66bf82..dc4894df5395157e2c04c2b7b581572e8289262b 100644 (file)
Binary files a/test.exe and b/test.exe differ
index 569e75dfcfa8da6fc6df1dfa3fe195a58c67a730..95a054404a1148ccd861958100a8790cd350b3e0 100644 (file)
Binary files a/test2.exe and b/test2.exe differ