OSDN Git Service

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 996d365..3e96654 100644 (file)
Binary files a/pcxtest.exe and b/pcxtest.exe differ
index 69e129f..df1a82f 100644 (file)
Binary files a/scroll.exe and b/scroll.exe differ
index 9d892ce..398cb66 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 438dd0e..e99821f 100644 (file)
Binary files a/test.exe and b/test.exe differ
index cb5e880..508ff30 100644 (file)
Binary files a/test2.exe and b/test2.exe differ