From: sparky4 Date: Thu, 26 Jan 2017 16:30:13 +0000 (-0600) Subject: showing row and colum drawing X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=b80e663f02a0d29832ec9d4f921a00d95abb2047;p=16.git showing row and colum drawing --- diff --git a/src/lib/16_tail.h b/src/lib/16_tail.h index f5998339..a90d9ca7 100755 --- a/src/lib/16_tail.h +++ b/src/lib/16_tail.h @@ -44,6 +44,7 @@ if(IN_KeyDown(sc_F9)){ pagenorendermap=!pagenorendermap; IN_UserInput(1,1); } \ if(IN_KeyDown(sc_F7)){ ZC_ShowMV(&mv, 0, 1); IN_UserInput(1,1); } \ if(IN_KeyDown(sc_F6)){ ZC_ShowMV(&mv, 0, 0); IN_UserInput(1,1); } \ + if(IN_KeyDown(sc_F3)){ pagedelayrendermap=!pagedelayrendermap; IN_UserInput(1,1); } \ if(IN_KeyDown(sc_T)){ gvar.video.rss=!gvar.video.rss; IN_UserInput(1,1); } \ if(IN_KeyDown(sc_P)){ modexpdump(&gvar.video.page[0]); IN_UserInput(1,1); } diff --git a/src/lib/scroll16.c b/src/lib/scroll16.c index e22a48ec..0e2e847b 100755 --- a/src/lib/scroll16.c +++ b/src/lib/scroll16.c @@ -772,10 +772,9 @@ void near mapDrawRow(map_view_t *mv, int tx, int ty, word y, player_t *player, w // sprintf(global_temp_status_textR, "y:%u", poopoffset); modexprint(mv[0].page, player[0].enti.x, player[0].enti.y-28, 1, 2, 1, global_temp_status_textR); /* the position within the map array */ i=ty * mv->map->width + tx; - for(x=poopoffset; - x<(mv->page->sw+mv->dxThresh)/(poopoffset+1) && tx < mv->map->width; - x+=mv->map->tiles->tileWidth, tx++) { + for(x=poopoffset; x<(mv->page->sw+mv->dxThresh)/(poopoffset+1) && tx < mv->map->width; x+=mv->map->tiles->tileWidth, tx++) { if(i>=0) { + if(pagedelayrendermap) delay(400); /* we are in the map, so copy! */ mapDrawTile(mv->map->tiles, mv->map->data[i], mv->page, x, y); } @@ -799,10 +798,9 @@ void near mapDrawCol(map_view_t *mv, int tx, int ty, word x, player_t *player, w /* We'll copy all of the columns in the screen, i + 1 row above and one below */ - for(y=poopoffset; - y<(mv->page->sh+mv->dyThresh)/(poopoffset+1) && ty < mv->map->height; - y+=mv->map->tiles->tileHeight, ty++) { + for(y=poopoffset; y<(mv->page->sh+mv->dyThresh)/(poopoffset+1) && ty < mv->map->height; y+=mv->map->tiles->tileHeight, ty++) { if(i>=0) { + if(pagedelayrendermap) delay(400); /* we are in the map, so copy away! */ mapDrawTile(mv->map->tiles, mv->map->data[i], mv->page, x, y); } @@ -853,6 +851,7 @@ void mapDrawWCol(map_view_t *mv, int tx, int ty, word x) boolean pageflipflop = 1; boolean pageploop = 1; boolean pagenorendermap = 0; +boolean pagedelayrendermap = 0; /* sync */ void shinku(global_game_variables_t *gv) diff --git a/src/lib/scroll16.h b/src/lib/scroll16.h index 7eb37b9f..643c68f0 100755 --- a/src/lib/scroll16.h +++ b/src/lib/scroll16.h @@ -122,7 +122,7 @@ printf("\n\n");\ printf("pageflipflop=%u\n", pageflipflop);\ printf("\n"); -extern boolean pageflipflop, pageploop, pagenorendermap; +extern boolean pageflipflop, pageploop, pagenorendermap, pagedelayrendermap; extern char global_temp_status_text[512];