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 e5e004f commit d622f8f
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 @@ -643,7 +643,7 @@ static void main_menu(void)
if (ImGui::BeginMenu("Aspect Ratio"))
{
ImGui::PushItemWidth(200.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 @@ -69,7 +69,7 @@ static const struct retro_variable vars[] = {
{ "gearsystem_region", "Region (restart); Auto|Master System Japan|Master System Export|Game Gear Japan|Game Gear Export|Game Gear International" },
{ "gearsystem_mapper", "Mapper (restart); Auto|ROM|SEGA|Codemasters|Korean|MSX|Janggun|SG-1000" },
{ "gearsystem_timing", "Refresh Rate (restart); Auto|NTSC (60 Hz)|PAL (50 Hz)" },
{ "gearsystem_aspect_ratio", "Aspect Ratio (restart); 1:1 PAR|4:3 PAR|16:9 PAR" },
{ "gearsystem_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)" },
{ "gearsystem_bios_sms", "Master System BIOS (restart); Disabled|Enabled" },
{ "gearsystem_bios_gg", "Game Gear BIOS (restart); Disabled|Enabled" },
Expand Down Expand Up @@ -419,9 +419,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 d622f8f

Please sign in to comment.