OSDN Git Service

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 ce3ecaa..6911718 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