summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-10-12 21:54:23 +0200
committerGitHub <noreply@github.com>2022-10-12 21:54:23 +0200
commit3da4280e816bd771d6b2649e70dc6d7c99002948 (patch)
treefd82415169610de21e05d79a3631d907c5640835 /src
parentMerge pull request #9049 from liamwhite/monkeyhawk (diff)
parentyuzu: Add 16:10 aspect ratio (diff)
downloadyuzu-3da4280e816bd771d6b2649e70dc6d7c99002948.tar
yuzu-3da4280e816bd771d6b2649e70dc6d7c99002948.tar.gz
yuzu-3da4280e816bd771d6b2649e70dc6d7c99002948.tar.bz2
yuzu-3da4280e816bd771d6b2649e70dc6d7c99002948.tar.lz
yuzu-3da4280e816bd771d6b2649e70dc6d7c99002948.tar.xz
yuzu-3da4280e816bd771d6b2649e70dc6d7c99002948.tar.zst
yuzu-3da4280e816bd771d6b2649e70dc6d7c99002948.zip
Diffstat (limited to 'src')
-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) {
return 3.0f / 4.0f;
case AspectRatio::R21_9:
return 9.0f / 21.0f;
+ case AspectRatio::R16_10:
+ return 10.0f / 16.0f;
case AspectRatio::StretchToWindow:
return window_aspect_ratio;
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 {
Default,
R4_3,
R21_9,
+ R16_10,
StretchToWindow,
};
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 @@
</item>
<item>
<property name="text">
+ <string>Force 16:10</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
<string>Stretch to Window</string>
</property>
</item>