]> 4ch.mooo.com Git - 16.git/commitdiff
makefile polished!!
authorsparky4 <sparky4@cock.li>
Fri, 6 Jan 2017 18:15:51 +0000 (12:15 -0600)
committersparky4 <sparky4@cock.li>
Fri, 6 Jan 2017 18:15:51 +0000 (12:15 -0600)
src/0.c
src/lib/16_vl.c
src/vrstest.c

diff --git a/src/0.c b/src/0.c
index ceb1606f4fe46aec75ac2d2b8dee4a3ea3afb47c..c0f215374d7aad49b59ca6b664db3df9b0e18c50 100755 (executable)
--- a/src/0.c
+++ b/src/0.c
@@ -84,8 +84,6 @@ int main(int argc,char **argv) {
 \r
        /* setup camera and screen~ */\r
        modexHiganbanaPageSetup(&gvar.video);\r
-       gvar.video.page[1].dx=gvar.video.page[0].dx=16;\r
-       gvar.video.page[1].dy=gvar.video.page[0].dy=16;\r
        modexShowPage(&(gvar.video.page[0]));\r
 \r
        #define VMEMHEIGHT gvar.video.page[0].height+gvar.video.page[1].height\r
@@ -123,8 +121,8 @@ int main(int argc,char **argv) {
                }\r
 \r
                /* starting coords. note: this technique is limited to x coordinates of multiple of 4 */\r
-               x = 0;\r
-               y = 0;\r
+               x = -(gvar.video.page[0].dx);\r
+               y = -(gvar.video.page[0].dy);\r
 \r
                /* do it */\r
                omemptr = vga_state.vga_graphics_ram; // save original mem ptr\r
index 0c8c5571fd7db83be30f5ba79917755f94616d21..53e45abd3aeea4eccc87938d4d6a8a0b4ad0bd6d 100755 (executable)
@@ -292,6 +292,12 @@ void modexHiganbanaPageSetup(video_t *video)
        modexCalcVmemRemain(video);\r
        video->p=0;\r
        video->r=1;\r
+\r
+       //setup the buffersize\r
+       video->page[0].dy=video->page[0].dx=\r
+               video->page[1].dx=video->page[1].dy=16;\r
+       video->page[2].dx=video->page[2].dy=\r
+               video->page[3].dx=video->page[3].dy=0;\r
 }\r
 \r
 void\r
index a555818b59533005b9ccafd7084b09f89c334d6a..95f875770325ff8e84f029e68a6783c0b39a77b4 100755 (executable)
@@ -110,7 +110,6 @@ void main() {
        modexHiganbanaPageSetup(&gvar.video);\r
 \r
        /* simulate scroll's zetup */\r
-       gvar.video.page[0].dx = gvar.video.page[0].dy = 16;\r
        modexShowPage(&gvar.video.page[0]);\r
 \r
        /* non sprite comparison */\r