From 2702eb90bf0e54309120e2274d3d5e4afa993313 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 18 Jul 2020 00:25:41 +1000 Subject: [PATCH] libretro: Add widescreen hack option --- src/duckstation-libretro/libretro_host_interface.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/duckstation-libretro/libretro_host_interface.cpp b/src/duckstation-libretro/libretro_host_interface.cpp index 687a8b1e1..892b8a73a 100644 --- a/src/duckstation-libretro/libretro_host_interface.cpp +++ b/src/duckstation-libretro/libretro_host_interface.cpp @@ -348,7 +348,7 @@ void LibretroHostInterface::OnSystemDestroyed() m_using_hardware_renderer = false; } -static std::array s_option_definitions = {{ +static std::array s_option_definitions = {{ {"Console.Region", "Console Region", "Determines which region/hardware to emulate. Auto-Detect will use the region of the disc inserted.", @@ -437,6 +437,12 @@ static std::array s_option_definitions = {{ "others will break.", {{"true", "Enabled"}, {"false", "Disabled"}}, "false"}, + {"GPU.WidescreenHack", + "Widescreen Hack", + "Increases the field of view from 4:3 to 16:9 in 3D games. For 2D games, or games which use pre-rendered " + "backgrounds, this enhancement will not work as expected.", + {{"true", "Enabled"}, {"false", "Disabled"}}, + "false"}, {"Display.CropMode", "Crop Mode", "Changes how much of the image is cropped. Some games display garbage in the overscan area which is typically "