summaryrefslogtreecommitdiff
path: root/vdp.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-03-06 00:23:35 -0800
committerMichael Pavone <pavone@retrodev.com>2017-03-06 00:23:35 -0800
commit903393be7e738804d403174687970f3add2ad43b (patch)
tree38af7a970964f9f6fddcdc03d00597b70f236b97 /vdp.h
parentd9f0da59c3cc8cbcc6b41208a9ad34dbb0be367c (diff)
Initial stab at horizontal border emulation. Only works for H40 and still has a few minor holes to fill
Diffstat (limited to 'vdp.h')
-rw-r--r--vdp.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/vdp.h b/vdp.h
index 72b45c5..e51a3fa 100644
--- a/vdp.h
+++ b/vdp.h
@@ -14,7 +14,10 @@
#define CRAM_SIZE 64
#define VSRAM_SIZE 40
#define VRAM_SIZE (64*1024)
-#define LINEBUF_SIZE (320+27) //H40 + full border
+#define BORDER_LEFT 13
+#define BORDER_RIGHT 14
+#define HORIZ_BORDER (BORDER_LEFT+BORDER_RIGHT)
+#define LINEBUF_SIZE (320+HORIZ_BORDER) //H40 + full border
#define BORDER_BOTTOM 13 //TODO: Replace with actual value
#define MAX_DRAWS 40
#define MAX_DRAWS_H32 32