From 35c71ebcfd5110db558cd0907c07c6331b0de2a2 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Sun, 22 Oct 2023 12:08:19 +0200 Subject: [PATCH] rend: add hcount and vcount used by meltyb for video shift calc meltyb (and possibly others) uses hcount=850 (instead of 851) and vcount=528 (instead of 529) --- core/rend/transform_matrix.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/rend/transform_matrix.h b/core/rend/transform_matrix.h index 280c2a7d1..65d1a8a78 100644 --- a/core/rend/transform_matrix.h +++ b/core/rend/transform_matrix.h @@ -296,6 +296,7 @@ inline static void getVideoShift(float& x, float& y) x = VO_STARTX.HStart - 0xae; break; case 851: // Naomi + case 850: // meltyb x = VO_STARTX.HStart - 0xa5; // a0 for 15 kHz break; default: @@ -318,6 +319,7 @@ inline static void getVideoShift(float& x, float& y) y = VO_STARTY.VStart_field1 - 0x2e; break; case 529: // Naomi 31 kHz + case 528: // meltyb y = VO_STARTY.VStart_field1 - 0x24; break; case 536: // Naomi 15 kHz 480i