double buffering
[psx_test1] / src / gpu.c
index bc2f1a4..6a4823e 100644 (file)
--- a/src/gpu.c
+++ b/src/gpu.c
@@ -51,6 +51,11 @@ void gpu_display(int en)
        REG_GP1 = GPCMD(GP1_DISPEN) | (en ? 0 : 1);
 }
 
+void gpu_dispstart(int x, int y)
+{
+       REG_GP1 = GPCMD(GP1_START) | x | (y << 10);
+}
+
 void gpu_cliprect(int x, int y, int w, int h)
 {
        REG_GP0 = GPCMD(GP0_CLIP_TL) | x | (y << 10);