From: sparky4 Date: Sun, 29 Mar 2015 17:05:40 +0000 (-0500) Subject: backing up before palette optimization~ X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=16df343f5f221379f8c534c93de21f565d1ee7fa;p=16.git backing up before palette optimization~ modified: pcxtest.exe modified: scroll.exe modified: src/lib/modex16.c modified: test.exe modified: test2.exe --- diff --git a/pcxtest.exe b/pcxtest.exe index 996d365e..3e96654a 100644 Binary files a/pcxtest.exe and b/pcxtest.exe differ diff --git a/scroll.exe b/scroll.exe index 69e129fe..df1a82f4 100644 Binary files a/scroll.exe and b/scroll.exe differ diff --git a/src/lib/modex16.c b/src/lib/modex16.c index 9d892ce2..398cb662 100644 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -598,10 +598,6 @@ modexPalUpdate(bitmap_t *bmp, word *i) word q=0; long lq; long bufSize = (bmp->width * bmp->height); - for(lq=0; lqdata[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; lqdata[lq]+=bmp->offset; + printf("%02d", bmp->data[lq]); + if(lq%bmp->width==0) printf("\n"); + } } void diff --git a/test.exe b/test.exe index 438dd0ea..e99821fd 100644 Binary files a/test.exe and b/test.exe differ diff --git a/test2.exe b/test2.exe index cb5e880d..508ff301 100644 Binary files a/test2.exe and b/test2.exe differ