]> 4ch.mooo.com Git - 16.git/commitdiff
Fixed a compile error, touching up paging. Still not 100%
authorRobert Lowe <pngwen@acm.org>
Mon, 8 Sep 2014 02:21:53 +0000 (22:21 -0400)
committerRobert Lowe <pngwen@acm.org>
Mon, 8 Sep 2014 02:21:53 +0000 (22:21 -0400)
16/modex16/scroll.c
16/modex16/scroll.exe

index 697f5f21576ee5a23da9a6ce926fe05655d54c30..cea92abb2a5bb514268eca7a422db6622d7f2b2c 100644 (file)
@@ -53,13 +53,14 @@ void main() {
        //int ch=0x0;\r
        byte ch;\r
        int q=0;
-       setkb(1);\r
        page_t screen,screen2;\r
        map_t map;\r
        map_view_t mv, mv2;\r
        map_view_t *draw, *show, *tmp;\r
        byte *ptr;\r
        \r
+
+       setkb(1);\r
        /* create the map */\r
        map = allocMap(40,30);\r
        initMap(&map);\r
@@ -72,9 +73,9 @@ void main() {
        screen = modexDefaultPage();\r
        screen.width = 352;\r
        mv.page = &screen;\r
+       mapGoTo(&mv, 0, 0);\r
        screen2=modexNextPage(mv.page);\r
        mv2.page = &screen2;\r
-       mapGoTo(&mv, 0, 0);\r
        mapGoTo(&mv2, 0, 0);\r
        modexShowPage(mv.page);\r
 \r
@@ -95,6 +96,7 @@ void main() {
                for(q=0; q<16; q++) {\r
                mapScrollLeft(draw, 1);\r
                modexShowPage(draw->page);\r
+               mapScrollLeft(show, 1);\r
                SWAP(draw, show);\r
                }\r
        }\r
@@ -103,6 +105,7 @@ void main() {
                for(q=0; q<16; q++) {\r
                mapScrollDown(draw, 1);\r
                modexShowPage(draw->page);\r
+               mapScrollDown(show, 1);\r
                SWAP(draw, show);\r
                }\r
        }\r
@@ -112,6 +115,7 @@ void main() {
                for(q=0; q<16; q++) {\r
                mapScrollUp(draw, 1);\r
                modexShowPage(draw->page);\r
+               mapScrollUp(show, 1);\r
                SWAP(draw, show);\r
 \r
                }\r
index 493d42149c3ea710c4c82cf3744b788a19b7b942..997d329374a86641aa6c403b26a153a240635438 100755 (executable)
Binary files a/16/modex16/scroll.exe and b/16/modex16/scroll.exe differ