From 310f4da6ca5a87f9b69e8de7cbe4407703415f54 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Fri, 6 Jan 2017 12:15:51 -0600 Subject: [PATCH] makefile polished!! --- src/0.c | 6 ++---- src/lib/16_vl.c | 6 ++++++ src/vrstest.c | 1 - 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/0.c b/src/0.c index ceb1606f..c0f21537 100755 --- a/src/0.c +++ b/src/0.c @@ -84,8 +84,6 @@ int main(int argc,char **argv) { /* setup camera and screen~ */ modexHiganbanaPageSetup(&gvar.video); - gvar.video.page[1].dx=gvar.video.page[0].dx=16; - gvar.video.page[1].dy=gvar.video.page[0].dy=16; modexShowPage(&(gvar.video.page[0])); #define VMEMHEIGHT gvar.video.page[0].height+gvar.video.page[1].height @@ -123,8 +121,8 @@ int main(int argc,char **argv) { } /* starting coords. note: this technique is limited to x coordinates of multiple of 4 */ - x = 0; - y = 0; + x = -(gvar.video.page[0].dx); + y = -(gvar.video.page[0].dy); /* do it */ omemptr = vga_state.vga_graphics_ram; // save original mem ptr diff --git a/src/lib/16_vl.c b/src/lib/16_vl.c index 0c8c5571..53e45abd 100755 --- a/src/lib/16_vl.c +++ b/src/lib/16_vl.c @@ -292,6 +292,12 @@ void modexHiganbanaPageSetup(video_t *video) modexCalcVmemRemain(video); video->p=0; video->r=1; + + //setup the buffersize + video->page[0].dy=video->page[0].dx= + video->page[1].dx=video->page[1].dy=16; + video->page[2].dx=video->page[2].dy= + video->page[3].dx=video->page[3].dy=0; } void diff --git a/src/vrstest.c b/src/vrstest.c index a555818b..95f87577 100755 --- a/src/vrstest.c +++ b/src/vrstest.c @@ -110,7 +110,6 @@ void main() { modexHiganbanaPageSetup(&gvar.video); /* simulate scroll's zetup */ - gvar.video.page[0].dx = gvar.video.page[0].dy = 16; modexShowPage(&gvar.video.page[0]); /* non sprite comparison */ -- 2.39.2