summaryrefslogtreecommitdiffstats
path: root/src/core/frontend
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-08-23 03:58:23 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-08-23 03:58:23 +0200
commit3c45452fae7f33d0534c144c5f588ef98f0a1346 (patch)
tree02ba43c8405ae2ca8b80940653cb558d0db6191a /src/core/frontend
parentsettings: Add docked mode helper function (diff)
downloadyuzu-3c45452fae7f33d0534c144c5f588ef98f0a1346.tar
yuzu-3c45452fae7f33d0534c144c5f588ef98f0a1346.tar.gz
yuzu-3c45452fae7f33d0534c144c5f588ef98f0a1346.tar.bz2
yuzu-3c45452fae7f33d0534c144c5f588ef98f0a1346.tar.lz
yuzu-3c45452fae7f33d0534c144c5f588ef98f0a1346.tar.xz
yuzu-3c45452fae7f33d0534c144c5f588ef98f0a1346.tar.zst
yuzu-3c45452fae7f33d0534c144c5f588ef98f0a1346.zip
Diffstat (limited to 'src/core/frontend')
-rw-r--r--src/core/frontend/applets/controller.cpp3
-rw-r--r--src/core/frontend/framebuffer_layout.cpp3
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/frontend/applets/controller.cpp b/src/core/frontend/applets/controller.cpp
index 4c0c5434c..27755cb58 100644
--- a/src/core/frontend/applets/controller.cpp
+++ b/src/core/frontend/applets/controller.cpp
@@ -3,6 +3,7 @@
#include "common/assert.h"
#include "common/logging/log.h"
+#include "common/settings.h"
#include "common/settings_enums.h"
#include "core/frontend/applets/controller.h"
#include "core/hid/emulated_controller.h"
@@ -63,7 +64,7 @@ void DefaultControllerApplet::ReconfigureControllers(ReconfigureCallback callbac
controller->Connect(true);
}
} else if (index == 0 && parameters.enable_single_mode && parameters.allow_handheld &&
- Settings::values.use_docked_mode.GetValue() == Settings::ConsoleMode::Handheld) {
+ !Settings::IsDockedMode()) {
// We should *never* reach here under any normal circumstances.
controller->SetNpadStyleIndex(Core::HID::NpadStyleIndex::Handheld);
controller->Connect(true);
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) {
}
FramebufferLayout FrameLayoutFromResolutionScale(f32 res_scale) {
- const bool is_docked =
- Settings::values.use_docked_mode.GetValue() == Settings::ConsoleMode::Docked;
+ const bool is_docked = Settings::IsDockedMode();
const u32 screen_width = is_docked ? ScreenDocked::Width : ScreenUndocked::Width;
const u32 screen_height = is_docked ? ScreenDocked::Height : ScreenUndocked::Height;