From: sparky4 Date: Wed, 4 May 2016 20:41:00 +0000 (-0500) Subject: joncambell321 please help test.exe creates garbage if the 2nd rendering page is writt... X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=914b1aac9034d8d1ff3fe17b3821859de22891fe;p=16.git joncambell321 please help test.exe creates garbage if the 2nd rendering page is written writing beyon the 2nd page sw size breaks the program of all programs wwwwwwwww --- diff --git a/src/test.c b/src/test.c index 397971ba..bb0fb201 100755 --- a/src/test.c +++ b/src/test.c @@ -30,7 +30,7 @@ player_t player[MaxPlayers]; void main(int argc, char *argv[]) { int i, j; - word start, end; + word startclk, endclk; word p, k; byte *pal, *pal2; sword bakapee; @@ -97,11 +97,12 @@ void main(int argc, char *argv[]) /* fade in */ modexFadeOn(1, pal2); - i=0,k=0,j=0,p=0; - start = *clockw; - while(!IN_KeyDown(sc_Escape) && i<5) + i=0,k=0,j=0,p=1; + startclk = *clockw; + while(!IN_KeyDown(sc_Escape)) { IN_ReadControl(0,&player); + if(i<5){ switch (k) { case 0: @@ -127,13 +128,17 @@ void main(int argc, char *argv[]) default: break; + }}else{ + modexClearRegion(&gvar.video.page[1], 0, gvar.video.page[0].height/2, gvar.video.page[0].width-32, 16, 45); + if(IN_KeyDown(6)) modexClearRegion(&gvar.video.page[1], 0, gvar.video.page[0].height/2, gvar.video.page[0].width, 16, 45); } if(IN_KeyDown(2)) p=0; if(IN_KeyDown(3)) p=1; + //if(IN_KeyDown(6)) modexClearRegion(&gvar.video.page[1], 0, 0, gvar.video.page[0].sw-64, gvar.video.page[0].sh-16, 45); modexShowPage(&gvar.video.page[p]); } - end = *clockw; + endclk = *clockw; /* fade back to text mode */ modexFadeOff(1, pal2);