From eb05cec59c5b633657100f2d435d1b8e4016a810 Mon Sep 17 00:00:00 2001 From: Nico de Poel Date: Sun, 15 Jan 2023 19:57:52 +0100 Subject: [PATCH] Adjusted display values slightly to better match aspect between NTSC and PAL, and for better vertical centering in PAL. --- display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/display.c b/display.c index a91eac9..60d35fa 100644 --- a/display.c +++ b/display.c @@ -68,7 +68,7 @@ void display_init() FntLoad(960, 0); // Open up a test font text stream - FntOpen(0, 8, SCREENWIDTH, screenHeight, 0, 512); + FntOpen(0, 16, SCREENWIDTH, screenHeight, 0, 512); } void display_reset(int mode, u_char interlaced, int *outScreenHeight) @@ -83,12 +83,12 @@ void display_reset(int mode, u_char interlaced, int *outScreenHeight) yOffset = (240 - SCREENHEIGHT_NTSC) >> 1; // Vertically center the image for NTSC displays // Scale Y coordinates to correct the aspect ratio for NTSC's typical visible screen area - aspect_scale.vy = 224 * ONE / 240; + aspect_scale.vy = 216 * ONE / 240; } else // MODE_PAL { screenHeight = SCREENHEIGHT_PAL; - yOffset = (288 - SCREENHEIGHT_PAL) >> 1; // Vertically center the image for PAL displays + yOffset = (296 - SCREENHEIGHT_PAL) >> 1; // Vertically center the image for PAL displays // Scale Y coordinates to correct the aspect ratio for PAL's non-square pixels aspect_scale.vy = 256 * ONE / 240;