]> 4ch.mooo.com Git - 16.git/commitdiff
made iq=(*i)-q
authorsparky4 <sparky4@cock.li>
Sat, 11 Nov 2017 21:53:35 +0000 (15:53 -0600)
committersparky4 <sparky4@cock.li>
Sat, 11 Nov 2017 21:53:35 +0000 (15:53 -0600)
src/lib/16_vlpal.c
src/lib/doslib

index a6af26188012e9fd2121dc3ec4d92dc4afe8e22e..ce3ecaa13d178e290ec08c26c7dae3a0b58d7eae 100755 (executable)
@@ -103,7 +103,7 @@ VL_palette(imgtestpal_t *bmp, byte *p, word *i, word qp, word aqoffset, word *ap
        word q=0;\r
        word qq=0;\r
        word a[PAL_SIZE];       //palette array of change values!\r
-       word z=0, aq=0, aa=0, pp=0;\r
+       word z=0, aq=0, aa=0, pp=0, iq=0;//iq=(*i)-q\r
 \r
        //modexWaitBorder();\r
        vga_wait_for_vsync();\r
@@ -125,6 +125,7 @@ VL_palette(imgtestpal_t *bmp, byte *p, word *i, word qp, word aqoffset, word *ap
                printf("qq: %02d\n", (qq));//\r
                printf("          (*i)-q=%02d\n", (*i)-q);//\r
 #endif\r
+               iq=(*i)-q;\r
                outp(PAL_WRITE_REG, qq);  /* start at the beginning of palette */\r
        }\r
        if((*i)<PAL_SIZE && w==0)\r
@@ -132,8 +133,8 @@ VL_palette(imgtestpal_t *bmp, byte *p, word *i, word qp, word aqoffset, word *ap
                for(; (*i)<PAL_SIZE; (*i)++)\r
                {\r
                        //if(i%3==0 && (p[i+5]==p[i+4] && p[i+4]==p[i+3] && p[i+3]==p[i+2] && p[i+2]==p[i+1] && p[i+1]==p[i] && p[i+5]==p[i]))\r
-//____           if((qp>0)&&((*i)-q)%3==0 && (p[((*i)-q)]==p[((*i)-q)+3] && p[((*i)-q)+1]==p[((*i)-q)+4] && p[((*i)-q)+2]==p[((*i)-q)+5])) outp(PAL_DATA_REG, p[(*i)-q]); else\r
-                       if(((((*i)-q)%3==0)) && (p[((*i)-q)]==p[((*i)-q)+3] && p[((*i)-q)+1]==p[((*i)-q)+4] && p[((*i)-q)+2]==p[((*i)-q)+5]))\r
+//____           if((qp>0)&&(iq)%3==0 && (p[(iq)]==p[(iq)+3] && p[(iq)+1]==p[(iq)+4] && p[(iq)+2]==p[(iq)+5])) outp(PAL_DATA_REG, p[iq]); else\r
+                       if((((iq)%3==0)) && (p[(iq)]==p[(iq)+3] && p[(iq)+1]==p[(iq)+4] && p[(iq)+2]==p[(iq)+5]))\r
                        {\r
                                w++;\r
                                break;\r
@@ -152,7 +153,7 @@ VL_palette(imgtestpal_t *bmp, byte *p, word *i, word qp, word aqoffset, word *ap
                        {\r
                                if(bmp->offset==0 && (*i)<3 && q==0) outp(PAL_DATA_REG, 0);\r
                                else\r
-                               if(qp==0) outp(PAL_DATA_REG, p[(*i)-q]);\r
+                               if(qp==0) outp(PAL_DATA_REG, p[iq]);\r
                                else\r
                                { outp(PAL_DATA_REG, p[((*i)-(bmp->offset*3)+qp)]);\r
 #ifdef BEVERBOSEPALCHECK\r
index 6d2fa67ac4b68bc93ad2533fcc7baeb115197511..53e2844bbdf62f9b1636b01ba4ccc03668e572c5 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 6d2fa67ac4b68bc93ad2533fcc7baeb115197511
+Subproject commit 53e2844bbdf62f9b1636b01ba4ccc03668e572c5