changeset 2326:9f150c0e1467

Clean up some constants.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 09 Sep 2019 11:21:41 +0300
parents ddd29161d258
children c8c58147e6e5
files tools/lib64gfx.h
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tools/lib64gfx.h	Wed Sep 04 13:00:42 2019 +0300
+++ b/tools/lib64gfx.h	Mon Sep 09 11:21:41 2019 +0300
@@ -28,10 +28,17 @@
 #define D64_SCR_CH_WIDTH       (D64_SCR_WIDTH / 8)
 #define D64_SCR_CH_HEIGHT      (D64_SCR_HEIGHT / 8)
 
+// Full screen size with borders
 #define D64_SCR_FULL_WIDTH     384
 #define D64_SCR_FULL_HEIGHT    272
-#define D64_SCR_VIS_XOFFS      24
-#define D64_SCR_VIS_YOFFS      50
+
+// Define the usually visible area
+#define D64_SCR_MIN_XC         32
+#define D64_SCR_MAX_XC         (D64_SCR_MIN_XC + D64_SCR_WIDTH)
+#define D64_SCR_MIN_YC         50
+#define D64_SCR_MAX_YC         (D64_SCR_MIN_YC + D64_SCR_HEIGHT)
+
+
 
 // C64 video screen pixel aspect ratio on PAL
 #define D64_SCR_PAR_XY         (0.9365f)