fix missed clear
authornotaz <notasas@gmail.com>
Tue, 30 Jan 2018 00:09:53 +0000 (02:09 +0200)
committernotaz <notasas@gmail.com>
Tue, 30 Jan 2018 00:09:53 +0000 (02:09 +0200)
testsram/main.c

index f9500b4..7f85399 100644 (file)
@@ -439,6 +439,11 @@ int main()
     VDP_setReg(VDP_SCROLLSZ, 0x01); 
     VDP_setReg(VDP_BACKDROP, 0); 
 
+    /* pattern 0 */
+    write32(GFX_CTRL_PORT, GFX_WRITE_VRAM_ADDR(0));
+    for (i = 0; i < 32 / 4; i++)
+        write32(GFX_DATA_PORT, 0);
+
     /* clear name tables */
     write32(GFX_CTRL_PORT, GFX_WRITE_VRAM_ADDR(APLANE));
     for (i = 0; i < PLANE_W * PLANE_H / 2; i++)