summaryrefslogtreecommitdiff
path: root/src/core/frontend/framebuffer_layout.cpp
diff options
context:
space:
mode:
authorGravatar lat9nq2023-08-22 21:58:23 -0400
committerGravatar lat9nq2023-08-22 21:58:23 -0400
commit3c45452fae7f33d0534c144c5f588ef98f0a1346 (patch)
tree02ba43c8405ae2ca8b80940653cb558d0db6191a /src/core/frontend/framebuffer_layout.cpp
parentsettings: Add docked mode helper function (diff)
downloadyuzu-3c45452fae7f33d0534c144c5f588ef98f0a1346.tar.gz
yuzu-3c45452fae7f33d0534c144c5f588ef98f0a1346.tar.xz
yuzu-3c45452fae7f33d0534c144c5f588ef98f0a1346.zip
general: Use console mode helper across project
Diffstat (limited to 'src/core/frontend/framebuffer_layout.cpp')
-rw-r--r--src/core/frontend/framebuffer_layout.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/frontend/framebuffer_layout.cpp b/src/core/frontend/framebuffer_layout.cpp
index ae0a44f12..2590b20da 100644
--- a/src/core/frontend/framebuffer_layout.cpp
+++ b/src/core/frontend/framebuffer_layout.cpp
@@ -50,8 +50,7 @@ FramebufferLayout DefaultFrameLayout(u32 width, u32 height) {
50} 50}
51 51
52FramebufferLayout FrameLayoutFromResolutionScale(f32 res_scale) { 52FramebufferLayout FrameLayoutFromResolutionScale(f32 res_scale) {
53 const bool is_docked = 53 const bool is_docked = Settings::IsDockedMode();
54 Settings::values.use_docked_mode.GetValue() == Settings::ConsoleMode::Docked;
55 const u32 screen_width = is_docked ? ScreenDocked::Width : ScreenUndocked::Width; 54 const u32 screen_width = is_docked ? ScreenDocked::Width : ScreenUndocked::Width;
56 const u32 screen_height = is_docked ? ScreenDocked::Height : ScreenUndocked::Height; 55 const u32 screen_height = is_docked ? ScreenDocked::Height : ScreenUndocked::Height;
57 56