From 7c206766aeb3b9a304138138d2785dc095cab1b3 Mon Sep 17 00:00:00 2001 From: Albert Liu <45282415+ggrtk@users.noreply.github.com> Date: Tue, 23 Jun 2020 08:22:09 -0700 Subject: [PATCH] HostInterface: Save default setting to AspectRatio, not PixelAspectRatio Fixes inconsistency with default settings saving to PixelAspectRatio, but loading from AspectRatio instead. PixelAspectRatio was not being used elsewhere. --- src/core/host_interface.cpp | 2 +- src/duckstation-libretro/libretro_host_interface.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/host_interface.cpp b/src/core/host_interface.cpp index 8ab19fd40..28edec025 100644 --- a/src/core/host_interface.cpp +++ b/src/core/host_interface.cpp @@ -342,7 +342,7 @@ void HostInterface::SetDefaultSettings(SettingsInterface& si) si.SetBoolValue("GPU", "ForceNTSCTimings", false); si.SetStringValue("Display", "CropMode", "Overscan"); - si.SetStringValue("Display", "PixelAspectRatio", "4:3"); + si.SetStringValue("Display", "AspectRatio", "4:3"); si.SetBoolValue("Display", "LinearFiltering", true); si.SetBoolValue("Display", "IntegerScaling", false); si.SetBoolValue("Display", "ShowOSDMessages", true); diff --git a/src/duckstation-libretro/libretro_host_interface.cpp b/src/duckstation-libretro/libretro_host_interface.cpp index a258fd72d..0917a4d2e 100644 --- a/src/duckstation-libretro/libretro_host_interface.cpp +++ b/src/duckstation-libretro/libretro_host_interface.cpp @@ -232,8 +232,8 @@ static std::array s_option_definitions = {{ "hidden.", {{"None", "None"}, {"Overscan", "Only Overscan Area"}, {"Borders", "All Borders"}}, "Overscan"}, - {"Display.PixelAspectRatio", - "Pixel Aspect Ratio", + {"Display.AspectRatio", + "Aspect Ratio", "Determines how the pixels in VRAM area are displayed on the screen.", {{"4:3", "4:3"}, {"16:9", "16:9"}, {"1:1", "1:1"}}, "4:3"},