From f6aae5e67c4156649f05f5d6e31a0f3211528265 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 24 Jun 2020 01:39:35 +1000 Subject: [PATCH] Settings: Add 2:1 (VRAM 1:1) display aspect ratio --- src/core/settings.cpp | 4 ++-- src/core/types.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/settings.cpp b/src/core/settings.cpp index 6a519f34d..ce2187678 100644 --- a/src/core/settings.cpp +++ b/src/core/settings.cpp @@ -377,8 +377,8 @@ const char* Settings::GetDisplayCropModeDisplayName(DisplayCropMode crop_mode) return s_display_crop_mode_display_names[static_cast(crop_mode)]; } -static std::array s_display_aspect_ratio_names = {{"4:3", "16:9", "1:1"}}; -static constexpr std::array s_display_aspect_ratio_values = {{4.0f / 3.0f, 16.0f / 9.0f, 1.0f}}; +static std::array s_display_aspect_ratio_names = {{"4:3", "16:9", "2:1 (VRAM 1:1)", "1:1"}}; +static constexpr std::array s_display_aspect_ratio_values = {{4.0f / 3.0f, 16.0f / 9.0f, 2.0f / 1.0f, 1.0f}}; std::optional Settings::ParseDisplayAspectRatio(const char* str) { diff --git a/src/core/types.h b/src/core/types.h index d394acd22..7ab1e6736 100644 --- a/src/core/types.h +++ b/src/core/types.h @@ -71,6 +71,7 @@ enum class DisplayAspectRatio : u8 { R4_3, R16_9, + R2_1, R1_1, Count };