]> 4ch.mooo.com Git - 16.git/commitdiff
0.c is under study wwww
authorsparky4 <sparky4@cock.li>
Fri, 24 Jun 2016 18:36:12 +0000 (13:36 -0500)
committersparky4 <sparky4@cock.li>
Fri, 24 Jun 2016 18:36:12 +0000 (13:36 -0500)
src/0.c

diff --git a/src/0.c b/src/0.c
index 4b5b2bb41dcd19acd671aea901558f0cca968002..dfb06420d0d99e356aef6d68b1b2510d80a55695 100755 (executable)
--- a/src/0.c
+++ b/src/0.c
@@ -84,7 +84,8 @@ int main(int argc,char **argv) {
        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
+       #define VMEMHEIGHT gvar.video.page[0].height
+       //+gvar.video.page[1].height
 
        //4     this dose the screen
        {
@@ -177,9 +178,9 @@ int main(int argc,char **argv) {
                        /* step */
                        x += xdir;
                        y += ydir;
-                       if (x >= (gvar.video.page[0].width - 1) || x == 0)
+                       if (x >= (gvar.video.page[0].width - 1) || x == -(gvar.video.page[0].dx))
                                xdir = -xdir;
-                       if (y >= (VMEMHEIGHT - 1) || y == 0)
+                       if (y >= (VMEMHEIGHT - 1) || y == -(gvar.video.page[0].dy))
                                ydir = -ydir;
                }
        }