LibretroHostInterface: Report aspect ratio setting to frontend

This commit is contained in:
Albert Liu 2020-06-23 09:21:24 -07:00
parent 7c206766ae
commit 28d38c9867
1 changed files with 2 additions and 3 deletions

View File

@ -29,7 +29,6 @@ Log_SetChannel(LibretroHostInterface);
// - Expose the rest of the options
// - Memory card and controller settings
// - Better paths for memory cards/BIOS
// - Fix up aspect ratio
//////////////////////////////////////////////////////////////////////////
LibretroHostInterface g_libretro_host_interface;
@ -81,7 +80,7 @@ void LibretroHostInterface::retro_get_system_av_info(struct retro_system_av_info
std::memset(info, 0, sizeof(*info));
info->geometry.aspect_ratio = 4.0f / 3.0f;
info->geometry.aspect_ratio = Settings::GetDisplayAspectRatioValue(m_settings.display_aspect_ratio);
if (!m_system->IsPALRegion())
{
@ -234,7 +233,7 @@ static std::array<retro_core_option_definition, 14> s_option_definitions = {{
"Overscan"},
{"Display.AspectRatio",
"Aspect Ratio",
"Determines how the pixels in VRAM area are displayed on the screen.",
"Sets the core-provided aspect ratio.",
{{"4:3", "4:3"}, {"16:9", "16:9"}, {"1:1", "1:1"}},
"4:3"},
{},