From 720520b066892f3428c2cfccefddbdc272609fb5 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Fri, 24 Jun 2016 13:36:12 -0500 Subject: [PATCH] 0.c is under study wwww --- src/0.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; } } -- 2.39.5