From: Robert Lowe Date: Mon, 8 Sep 2014 02:21:53 +0000 (-0400) Subject: Fixed a compile error, touching up paging. Still not 100% X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=4d0f353653c7299235a5f1c3b39b931800bda520;p=16.git Fixed a compile error, touching up paging. Still not 100% --- diff --git a/16/modex16/scroll.c b/16/modex16/scroll.c index 697f5f21..cea92abb 100644 --- a/16/modex16/scroll.c +++ b/16/modex16/scroll.c @@ -53,13 +53,14 @@ void main() { //int ch=0x0; byte ch; int q=0; - setkb(1); page_t screen,screen2; map_t map; map_view_t mv, mv2; map_view_t *draw, *show, *tmp; byte *ptr; + + setkb(1); /* create the map */ map = allocMap(40,30); initMap(&map); @@ -72,9 +73,9 @@ void main() { screen = modexDefaultPage(); screen.width = 352; mv.page = &screen; + mapGoTo(&mv, 0, 0); screen2=modexNextPage(mv.page); mv2.page = &screen2; - mapGoTo(&mv, 0, 0); mapGoTo(&mv2, 0, 0); modexShowPage(mv.page); @@ -95,6 +96,7 @@ void main() { for(q=0; q<16; q++) { mapScrollLeft(draw, 1); modexShowPage(draw->page); + mapScrollLeft(show, 1); SWAP(draw, show); } } @@ -103,6 +105,7 @@ void main() { for(q=0; q<16; q++) { mapScrollDown(draw, 1); modexShowPage(draw->page); + mapScrollDown(show, 1); SWAP(draw, show); } } @@ -112,6 +115,7 @@ void main() { for(q=0; q<16; q++) { mapScrollUp(draw, 1); modexShowPage(draw->page); + mapScrollUp(show, 1); SWAP(draw, show); } diff --git a/16/modex16/scroll.exe b/16/modex16/scroll.exe index 493d4214..997d3293 100755 Binary files a/16/modex16/scroll.exe and b/16/modex16/scroll.exe differ