VERY experimental Nintendo Switch 2 emulator
C++
bootmanager: Consider the default resolution
lat9nq24fa548bbd80
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cppindex 593e59e8e9..e522845a34 100644--- a/src/yuzu/bootmanager.cpp+++ b/src/yuzu/bootmanager.cpp@@ -932,7 +932,11 @@ void GRenderWindow::CaptureScreenshot(const QString& screenshot_path) {Settings::ScreenshotAspectRatio::Auto) {return Layout::FrameLayoutFromResolutionScale(res_scale);}- const u32 height = UISettings::values.screenshot_height.GetValue();+ u32 height = UISettings::values.screenshot_height.GetValue();+ if (height == 0) {+ height = Settings::values.use_docked_mode.GetValue() ? 1080 : 720;+ height *= Settings::values.resolution_info.up_factor;+ }const u32 width = UISettings::CalculateWidth(height, UISettings::ConvertScreenshotRatioToRatio(UISettings::values.screenshot_aspect_ratio.GetValue()));