From b97d236975d7f3c5f7e8e1c455d9caa2158f2c79 Mon Sep 17 00:00:00 2001 From: Ignacio Sanchez Gines <863613+drhelius@users.noreply.github.com> Date: Tue, 17 Dec 2024 21:59:17 +0100 Subject: [PATCH] [libretro] Add config for aspect ratio 16:10 --- platforms/libretro/libretro.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platforms/libretro/libretro.cpp b/platforms/libretro/libretro.cpp index 5bad9ac..979031b 100644 --- a/platforms/libretro/libretro.cpp +++ b/platforms/libretro/libretro.cpp @@ -98,7 +98,7 @@ static void fallback_log(enum retro_log_level level, const char *fmt, ...) static const struct retro_variable vars[] = { { "gearcoleco_timing", "Refresh Rate (restart); Auto|NTSC (60 Hz)|PAL (50 Hz)" }, - { "gearcoleco_aspect_ratio", "Aspect Ratio (restart); 1:1 PAR|4:3 DAR|16:9 DAR" }, + { "gearcoleco_aspect_ratio", "Aspect Ratio (restart); 1:1 PAR|4:3 DAR|16:9 DAR|16:10 DAR" }, { "gearcoleco_overscan", "Overscan; Disabled|Top+Bottom|Full (284 width)|Full (320 width)" }, { "gearcoleco_up_down_allowed", "Allow Up+Down / Left+Right; Disabled|Enabled" }, { "gearcoleco_no_sprite_limit", "No Sprite Limit; Disabled|Enabled" }, @@ -505,6 +505,8 @@ static void check_variables(void) aspect_ratio = 4.0f / 3.0f; else if (strcmp(var.value, "16:9 DAR") == 0) aspect_ratio = 16.0f / 9.0f; + else if (strcmp(var.value, "16:10 DAR") == 0) + aspect_ratio = 16.0f / 10.0f; else aspect_ratio = 0.0f; }