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

index ce3ecaa13d178e290ec08c26c7dae3a0b58d7eae..691171808dcac8a43a8e43d0d7f3f98d5b687183 100755 (executable)
@@ -125,9 +125,9 @@ 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
+       iq=(*i)-q;\r
        if((*i)<PAL_SIZE && w==0)\r
        {\r
                for(; (*i)<PAL_SIZE; (*i)++)\r