diff options
| author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-08-21 16:03:30 -0400 |
|---|---|---|
| committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-08-22 16:07:52 -0400 |
| commit | 447ec243780580fe9e9f2f2d5893c7d127146b6b (patch) | |
| tree | 49f5a327eac0238c0e5197550f4753da592212b7 /src/yuzu/bootmanager.cpp | |
| parent | 02b7e0364ba3abbf5814f62f77181710730b2da3 (diff) | |
general: Convert use_docked_mode to an enumeration
Allows some special interactions with it in the Qt frontend.
Diffstat (limited to 'src/yuzu/bootmanager.cpp')
| -rw-r--r-- | src/yuzu/bootmanager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index 407988b8f5..37753b47e9 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp @@ -928,8 +928,9 @@ void GRenderWindow::CaptureScreenshot(const QString& screenshot_path) { const Layout::FramebufferLayout layout{[]() { u32 height = UISettings::values.screenshot_height.GetValue(); if (height == 0) { - height = Settings::values.use_docked_mode.GetValue() ? Layout::ScreenDocked::Height - : Layout::ScreenUndocked::Height; + height = Settings::values.use_docked_mode.GetValue() == Settings::ConsoleMode::Docked + ? Layout::ScreenDocked::Height + : Layout::ScreenUndocked::Height; height *= Settings::values.resolution_info.up_factor; } const u32 width = |
