general: Use console mode helper across project

This commit is contained in:
lat9nq
2023-08-22 21:58:23 -04:00
parent ab862207d7
commit 3c45452fae
13 changed files with 34 additions and 49 deletions

View File

@ -928,9 +928,8 @@ 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() == Settings::ConsoleMode::Docked
? Layout::ScreenDocked::Height
: Layout::ScreenUndocked::Height;
height = Settings::IsDockedMode() ? Layout::ScreenDocked::Height
: Layout::ScreenUndocked::Height;
height *= Settings::values.resolution_info.up_factor;
}
const u32 width =