From: sparky4 Date: Tue, 3 Nov 2015 19:30:02 +0000 (-0600) Subject: ok tweaking rendering X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=7bfb27fa40c79a2faafd96f87e83e86c0ad0bd12;p=16.git ok tweaking rendering --- diff --git a/16.exe b/16.exe index 077bad7d..d21b0102 100755 Binary files a/16.exe and b/16.exe differ diff --git a/exmmtest.exe b/exmmtest.exe index b4cf3731..fd8518a5 100755 Binary files a/exmmtest.exe and b/exmmtest.exe differ diff --git a/planrpcx.exe b/planrpcx.exe index bab8377f..efd9b91c 100755 Binary files a/planrpcx.exe and b/planrpcx.exe differ diff --git a/scroll.exe b/scroll.exe index 546f80a8..207f8bf9 100755 Binary files a/scroll.exe and b/scroll.exe differ diff --git a/src/lib/scroll16.c b/src/lib/scroll16.c index 7dd610f7..16fd5d07 100755 --- a/src/lib/scroll16.c +++ b/src/lib/scroll16.c @@ -485,7 +485,7 @@ mapDrawTile(tiles_t *t, word i, page_t *page, word x, word y) { case 0: #ifndef TILERENDER - modexClearRegion(page, x, y, t->tileWidth, t->tileHeight, ((t->debug_data[i])+1)*2); + modexClearRegion(page, x, y, t->tileWidth, t->tileHeight, ((t->debug_data[i])+1)); //cannot print number value du to it being slow as bakapee #else PBUFBFUN(page, x, y, rx, ry, t->tileWidth, t->tileHeight, &(t->data)); @@ -493,7 +493,7 @@ mapDrawTile(tiles_t *t, word i, page_t *page, word x, word y) #endif break; case 1: - modexClearRegion(page, x, y, t->tileWidth, t->tileHeight, (t->debug_data[i])+1); + modexClearRegion(page, x, y, t->tileWidth, t->tileHeight, (t->debug_data[i]+1)); //modexprintbig(page, x, y, 1, 15, 0, (t->debug_data)); /*for(texty=0; texty<2; texty++) { diff --git a/src/scroll.c b/src/scroll.c index ecfa6725..f7865cc3 100755 --- a/src/scroll.c +++ b/src/scroll.c @@ -125,7 +125,8 @@ void main(int argc, char *argv[]) // printf("Total used @ before palette initiation: %zu\n", oldfreemem-GetFreeSize()); //++++ player[0].data.offset=(paloffset/3); //++++ modexPalUpdate1(&player[0].data, &paloffset, 0, 0); - modexPalUpdate1(p.palette); + //modexPalUpdate1(p.palette); + modexPalUpdate1(map.tiles->btdata->palette); //printf(" %d\n", sizeof(ptmp->data)); //printf("1: %d\n", paloffset); //++++ map.tiles->data->offset=(paloffset/3); diff --git a/test.exe b/test.exe index 31682613..abbe29f4 100755 Binary files a/test.exe and b/test.exe differ