]> 4ch.mooo.com Git - 16.git/commitdiff
joncambell321 please help test.exe creates garbage if the 2nd rendering page is writt...
authorsparky4 <sparky4@cock.li>
Wed, 4 May 2016 21:10:16 +0000 (16:10 -0500)
committersparky4 <sparky4@cock.li>
Wed, 4 May 2016 21:10:16 +0000 (16:10 -0500)
src/test.c

index 5b9603a3ae9e6d3f92280f31a9d98025aa9e6263..02fdf1d5fb8e60992c6a7dfc84de7f817ebe6dc4 100755 (executable)
@@ -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);\r
                        if(IN_KeyDown(6)) modexClearRegion(&gvar.video.page[1], 0, gvar.video.page[0].height/2, gvar.video.page[0].width, 16, 45);\r
                        if(IN_KeyDown(4+1)){\r
-                               modexClearRegion(&gvar.video.page[0], 16, 16, gvar.video.page[0].sw, gvar.video.page[0].sh, 128);\r
-                               modexClearRegion(&gvar.video.page[0], 32, 32, gvar.video.page[0].sw-32, gvar.video.page[0].sh-32, 42);\r
-                               modexClearRegion(&gvar.video.page[0], 48, 48, gvar.video.page[0].sw-64, gvar.video.page[0].sh-64, 128);\r
+                               modexClearRegion(&gvar.video.page[1], 16, 16, gvar.video.page[1].sw, gvar.video.page[1].sh, 128);\r
+                               modexClearRegion(&gvar.video.page[1], 32, 32, gvar.video.page[1].sw-32, gvar.video.page[1].sh-32, 42);\r
+                               modexClearRegion(&gvar.video.page[1], 48, 48, gvar.video.page[1].sw-64, gvar.video.page[1].sh-64, 128);\r
                        }\r
                }\r
                if(IN_KeyDown(2)) p=0;\r