From 6b65daf07d45c255bf6d26f146127f3f5fa878bb Mon Sep 17 00:00:00 2001 From: jdgleaver Date: Fri, 16 Jul 2021 17:48:03 +0100 Subject: [PATCH] (OpenDingux Beta) Fix IPU scaling when running 256x224 (SNES/Genesis) content --- gfx/drivers/sdl_dingux_gfx.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gfx/drivers/sdl_dingux_gfx.c b/gfx/drivers/sdl_dingux_gfx.c index 4c5abfb272..607e3de340 100644 --- a/gfx/drivers/sdl_dingux_gfx.c +++ b/gfx/drivers/sdl_dingux_gfx.c @@ -581,6 +581,12 @@ static void sdl_dingux_sanitize_frame_dimensions( /* GB/GBC/GG (x3) @ 480x432 */ else if ((width == 480) && (height == 432)) *sanitized_width = 496; + /* SNES/Genesis @ 256x224 */ + else if ((width == 256) && (height == 224)) + *sanitized_width = 288; + /* SNES/Genesis (x2) @ 512x448 */ + else if ((width == 512) && (height == 448)) + *sanitized_width = 560; } #endif