From: sparky4 Date: Mon, 9 May 2016 06:59:36 +0000 (-0500) Subject: things are working well now ^o^ X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=23f857ab87cf17220060634de2ad2f3600f481ab;p=16.git things are working well now ^o^ --- diff --git a/src/lib/modex16.c b/src/lib/modex16.c index fe997dd7..9b61ed8b 100755 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -259,9 +259,9 @@ void modexHiganbanaPageSetup(video_t *video) { video->vmem_remain=262144L; video->num_of_pages=0; - (video->page[0]) = modexDefaultPage(&(video->page[0])); video->num_of_pages++; - //video->page[0].width += (TILEWHD); video->page[0].height += (TILEWHD); + (video->page[0]) = modexDefaultPage(&(video->page[0])); video->num_of_pages++; //video->page[0].width += (TILEWHD); video->page[0].height += (TILEWHD); (video->page[1]) = modexNextPage(&(video->page[0])); video->num_of_pages++; + (video->page[2]) = modexNextPage(&(video->page[1])); video->num_of_pages++; //(video->page[2]) = modexNextPageFlexibleSize(&(video->page[1]), video->page[0].width, video->page[0].sh-40); video->num_of_pages++; //(video->page[3]) = modexNextPageFlexibleSize(&(video->page[2]), TILEWH, TILEWH); video->num_of_pages++; modexCalcVmemRemain(video); @@ -1119,9 +1119,9 @@ modexWaitBorder() { // spin } - while(!(inp(INPUT_STATUS_1) & 8)) { - // spin - } +// while(!(inp(INPUT_STATUS_1) & 8)) { +// // spin +// } } void bios_cls() { diff --git a/src/scroll.c b/src/scroll.c index f371f87d..66a163d6 100755 --- a/src/scroll.c +++ b/src/scroll.c @@ -162,7 +162,7 @@ void main(int argc, char *argv[]) /* setup camera and screen~ */ modexHiganbanaPageSetup(&gvar.video); - for(i=0;iwidth, mv[1].page->height); + modexCopyPageRegion(mv[1].page, mv[0].page, 0, 0, 0, 0, mv[1].page->width, mv[1].page->height); //TODO: put player in starting position of spot //default player position on the viewable map @@ -318,16 +318,15 @@ void main(int argc, char *argv[]) for(i=0; iwidth, mv[0].map->height, mv[0].map->data[0]); printf("\n"); diff --git a/src/test.c b/src/test.c index 9f5762de..a57eb37c 100755 --- a/src/test.c +++ b/src/test.c @@ -91,10 +91,8 @@ void main(int argc, char *argv[]) mv[i].tx = 0; mv[i].ty = 0; } - gvar.video.page[0]=modexDefaultPage(&gvar.video.page[0]); - gvar.video.page[1] = modexNextPage(&gvar.video.page[0]); -// gvar.video.page[0].width += 32; -// gvar.video.page[0].height += 32; +// gvar.video.page[0]=modexDefaultPage(&gvar.video.page[0]); +// gvar.video.page[1] = modexNextPage(&gvar.video.page[0]); /* fill the page with one color, but with a black border */