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 1731d30 commit a66b182
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 @@ -79,7 +79,7 @@ static void fallback_log(enum retro_log_level level, const char *fmt, ...)
}

static const struct retro_variable vars[] = {
{ "geargrafx_aspect_ratio", "Aspect Ratio (restart); 1:1 PAR|4:3 DAR|16:9 DAR" },
{ "geargrafx_aspect_ratio", "Aspect Ratio (restart); 1:1 PAR|4:3 DAR|16:9 DAR|16:10 DAR" },
{ "geargrafx_up_down_allowed", "Allow Up+Down / Left+Right; Disabled|Enabled" },
{ "geargrafx_no_sprite_limit", "No Sprite Limit; Disabled|Enabled" },
{ NULL }
Expand Down Expand Up @@ -340,6 +340,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 a66b182

Please sign in to comment.