From: sparky4 Date: Fri, 24 Jun 2016 18:36:12 +0000 (-0500) Subject: 0.c is under study wwww X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=720520b066892f3428c2cfccefddbdc272609fb5;p=16.git 0.c is under study wwww --- diff --git a/src/0.c b/src/0.c index 4b5b2bb4..dfb06420 100755 --- 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; } }