From 914b1aac9034d8d1ff3fe17b3821859de22891fe Mon Sep 17 00:00:00 2001 From: sparky4 Date: Wed, 4 May 2016 15:41:00 -0500 Subject: [PATCH] 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 --- src/test.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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); -- 2.39.5