Skip to content

Commit

Permalink
Minor naming fix for aspect ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Jan 13, 2024
1 parent c917c95 commit 4c0d58d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion platforms/desktop-shared/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ static void main_menu(void)
if (ImGui::BeginMenu("Aspect Ratio"))
{
ImGui::PushItemWidth(160.0f);
ImGui::Combo("##ratio", &config_video.ratio, "Square Pixels (1:1 PAR)\0Standard (4:3 PAR)\0Wide (16:9 PAR)\0\0");
ImGui::Combo("##ratio", &config_video.ratio, "Square Pixels (1:1 PAR)\0Standard (4:3 DAR)\0Wide (16:9 DAR)\0\0");
ImGui::PopItemWidth();
ImGui::EndMenu();
}
Expand Down
6 changes: 3 additions & 3 deletions 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 PAR|16:9 PAR" },
{ "gearcoleco_aspect_ratio", "Aspect Ratio (restart); 1:1 PAR|4:3 DAR|16:9 DAR" },
{ "gearsystem_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 @@ -499,9 +499,9 @@ static void check_variables(void)
{
if (strcmp(var.value, "1:1 PAR") == 0)
aspect_ratio = 0.0f;
else if (strcmp(var.value, "4:3 PAR") == 0)
else if (strcmp(var.value, "4:3 DAR") == 0)
aspect_ratio = 4.0f / 3.0f;
else if (strcmp(var.value, "16:9 PAR") == 0)
else if (strcmp(var.value, "16:9 DAR") == 0)
aspect_ratio = 16.0f / 9.0f;
else
aspect_ratio = 0.0f;
Expand Down

0 comments on commit 4c0d58d

Please sign in to comment.