From e6ef5f1a1ce15a004c2e7ed539f04702039ef75c Mon Sep 17 00:00:00 2001 From: Elizabeth Date: Wed, 7 Oct 2020 04:00:38 -0400 Subject: [PATCH] Add 16:10 Aspect Ratio Option (#931) * Add 16:10 aspect ratio opton * Add 16:10 deffinition --- src/core/settings.cpp | 8 ++++---- src/core/types.h | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/core/settings.cpp b/src/core/settings.cpp index b840d2803..3f9ee7994 100644 --- a/src/core/settings.cpp +++ b/src/core/settings.cpp @@ -561,10 +561,10 @@ 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", "21:9", "8:7", "2:1 (VRAM 1:1)", "1:1", "PAR 1:1"}}; -static constexpr std::array s_display_aspect_ratio_values = { - {4.0f / 3.0f, 16.0f / 9.0f, 21.0f / 9.0f, 8.0f / 7.0f, 2.0f / 1.0f, 1.0f, -1.0f}}; +static std::array s_display_aspect_ratio_names = { + {"4:3", "16:9", "16:10", "21:9", "8:7", "2:1 (VRAM 1:1)", "1:1", "PAR 1:1"}}; +static constexpr std::array s_display_aspect_ratio_values = { + {4.0f / 3.0f, 16.0f / 9.0f, 16.0f / 10.0f, 21.0f / 9.0f, 8.0f / 7.0f, 2.0f / 1.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 cfe80b78e..0fb6bdd33 100644 --- a/src/core/types.h +++ b/src/core/types.h @@ -84,6 +84,7 @@ enum class DisplayAspectRatio : u8 { R4_3, R16_9, + R16_10, R21_9, R8_7, R2_1,