Add following aspect ratios: 16:9, 21:9, Stretch to Window

Available as a drop down within the configure graphics tab.
This commit is contained in:
Morph 2020-02-13 22:17:28 -05:00
parent 8b9a56033a
commit 27e19f87c6
9 changed files with 62 additions and 2 deletions

View file

@ -118,6 +118,8 @@ void Config::ReadValues() {
// Renderer
Settings::values.resolution_factor =
static_cast<float>(sdl2_config->GetReal("Renderer", "resolution_factor", 1.0));
Settings::values.aspect_ratio =
static_cast<int>(sdl2_config->GetInteger("Renderer", "aspect_ratio", 0));
Settings::values.use_frame_limit = false;
Settings::values.frame_limit = 100;
Settings::values.use_disk_shader_cache =

View file

@ -26,6 +26,10 @@ use_shader_jit =
# factor for the Switch resolution
resolution_factor =
# Aspect ratio
# 0: Default (16:9), 1: Force 21:9, 2: Stretch to Window
aspect_ratio =
# Whether to enable V-Sync (caps the framerate at 60FPS) or not.
# 0 (default): Off, 1: On
use_vsync =