summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Narr the Reg2022-10-10 13:32:09 -0500
committerGravatar Narr the Reg2022-10-10 13:32:33 -0500
commiteb74ef474b6ff98db2b39b5fee43d51f404dbca4 (patch)
tree5377443b1b6af48359edd6243470d6ce56f81ec9
parentMerge pull request #8915 from vonchenplus/opus_multi_stream (diff)
downloadyuzu-eb74ef474b6ff98db2b39b5fee43d51f404dbca4.tar.gz
yuzu-eb74ef474b6ff98db2b39b5fee43d51f404dbca4.tar.xz
yuzu-eb74ef474b6ff98db2b39b5fee43d51f404dbca4.zip
yuzu: Add 16:10 aspect ratio
-rw-r--r--src/core/frontend/framebuffer_layout.cpp2
-rw-r--r--src/core/frontend/framebuffer_layout.h1
-rw-r--r--src/yuzu/configuration/configure_graphics.ui5
3 files changed, 8 insertions, 0 deletions
diff --git a/src/core/frontend/framebuffer_layout.cpp b/src/core/frontend/framebuffer_layout.cpp
index 90dd68ff1..b4081fc39 100644
--- a/src/core/frontend/framebuffer_layout.cpp
+++ b/src/core/frontend/framebuffer_layout.cpp
@@ -67,6 +67,8 @@ float EmulationAspectRatio(AspectRatio aspect, float window_aspect_ratio) {
67 return 3.0f / 4.0f; 67 return 3.0f / 4.0f;
68 case AspectRatio::R21_9: 68 case AspectRatio::R21_9:
69 return 9.0f / 21.0f; 69 return 9.0f / 21.0f;
70 case AspectRatio::R16_10:
71 return 10.0f / 16.0f;
70 case AspectRatio::StretchToWindow: 72 case AspectRatio::StretchToWindow:
71 return window_aspect_ratio; 73 return window_aspect_ratio;
72 default: 74 default:
diff --git a/src/core/frontend/framebuffer_layout.h b/src/core/frontend/framebuffer_layout.h
index 1561d994e..94683b30f 100644
--- a/src/core/frontend/framebuffer_layout.h
+++ b/src/core/frontend/framebuffer_layout.h
@@ -27,6 +27,7 @@ enum class AspectRatio {
27 Default, 27 Default,
28 R4_3, 28 R4_3,
29 R21_9, 29 R21_9,
30 R16_10,
30 StretchToWindow, 31 StretchToWindow,
31}; 32};
32 33
diff --git a/src/yuzu/configuration/configure_graphics.ui b/src/yuzu/configuration/configure_graphics.ui
index 1e4f74704..fdbb33372 100644
--- a/src/yuzu/configuration/configure_graphics.ui
+++ b/src/yuzu/configuration/configure_graphics.ui
@@ -301,6 +301,11 @@
301 </item> 301 </item>
302 <item> 302 <item>
303 <property name="text"> 303 <property name="text">
304 <string>Force 16:10</string>
305 </property>
306 </item>
307 <item>
308 <property name="text">
304 <string>Stretch to Window</string> 309 <string>Stretch to Window</string>
305 </property> 310 </property>
306 </item> 311 </item>