]> 4ch.mooo.com Git - 16.git/commitdiff
backing up before palette optimization~
authorsparky4 <sparky4@cock.li>
Sun, 29 Mar 2015 17:05:40 +0000 (12:05 -0500)
committersparky4 <sparky4@cock.li>
Sun, 29 Mar 2015 17:05:40 +0000 (12:05 -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 996d365e1316be70466a6a139141e4fa9a5a000a..3e96654a18a1c0f34314be94c9f70393766ea6b1 100644 (file)
Binary files a/pcxtest.exe and b/pcxtest.exe differ
index 69e129feba899c0d411f3e00d4dc167200d7b4cd..df1a82f469c3dc44d322f68cef5ad52f4ed4ce32 100644 (file)
Binary files a/scroll.exe and b/scroll.exe differ
index 9d892ce22d09a9ce0e85f0018a32f0bee32a1292..398cb662cbfa9af05d44cf89a4f39a2691e5ae0d 100644 (file)
@@ -598,10 +598,6 @@ modexPalUpdate(bitmap_t *bmp, word *i)
        word q=0;
        long lq;
        long bufSize = (bmp->width * bmp->height);
-       for(lq=0; lq<bufSize; lq++)
-       {
-               bmp->data[lq]+=bmp->offset;
-       }
        modexWaitBorder();
        if((*i)==0) outp(PAL_WRITE_REG, 0);  /* start at the beginning of palette */
        else q=(*i);
@@ -647,6 +643,13 @@ modexPalUpdate(bitmap_t *bmp, word *i)
                        }
                }
        }
+       if((*i)>0)
+       for(lq=0; lq<bufSize; lq++)
+       {
+               bmp->data[lq]+=bmp->offset;
+               printf("%02d", bmp->data[lq]);
+               if(lq%bmp->width==0) printf("\n");
+       }
 }
 
 void
index 438dd0ead3951c42f62d10e15ea1740b259b9759..e99821fdd8e05996ecca85efd649962bd43f877e 100644 (file)
Binary files a/test.exe and b/test.exe differ
index cb5e880db1989b471084185dcfb3b1fb8827089d..508ff301148dc0d0856c2cd12527f2c54ac68c62 100644 (file)
Binary files a/test2.exe and b/test2.exe differ