Skip to content

Commit

Permalink
[libretro] Add config for aspect ratio 16:10
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Dec 17, 2024
1 parent d4cde04 commit b97d236
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion platforms/libretro/libretro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit b97d236

Please sign in to comment.