From: sparky4 Date: Wed, 4 May 2016 21:10:16 +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=5fd9e54930d3641ba694cf1e041dd34cc27cf6e2;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 5b9603a3..02fdf1d5 100755 --- a/src/test.c +++ b/src/test.c @@ -137,9 +137,9 @@ void main(int argc, char *argv[]) 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(4+1)){ - modexClearRegion(&gvar.video.page[0], 16, 16, gvar.video.page[0].sw, gvar.video.page[0].sh, 128); - modexClearRegion(&gvar.video.page[0], 32, 32, gvar.video.page[0].sw-32, gvar.video.page[0].sh-32, 42); - modexClearRegion(&gvar.video.page[0], 48, 48, gvar.video.page[0].sw-64, gvar.video.page[0].sh-64, 128); + modexClearRegion(&gvar.video.page[1], 16, 16, gvar.video.page[1].sw, gvar.video.page[1].sh, 128); + modexClearRegion(&gvar.video.page[1], 32, 32, gvar.video.page[1].sw-32, gvar.video.page[1].sh-32, 42); + modexClearRegion(&gvar.video.page[1], 48, 48, gvar.video.page[1].sw-64, gvar.video.page[1].sh-64, 128); } } if(IN_KeyDown(2)) p=0;