mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
LibretroHostInterface: Report aspect ratio setting to frontend
This commit is contained in:
parent
7c206766ae
commit
28d38c9867
|
@ -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"},
|
||||
{},
|
||||
|
|
Loading…
Reference in a new issue