# HG changeset patch # User Matti Hamalainen # Date 1568017301 -10800 # Node ID 9f150c0e146702e2ec4e899119ca32e9aa3e7d40 # Parent ddd29161d258d910f090abacef39f444ae517b14 Clean up some constants. diff -r ddd29161d258 -r 9f150c0e1467 tools/lib64gfx.h --- 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)