diff options
Diffstat (limited to '')
| -rw-r--r-- | src/yuzu/bootmanager.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index 593e59e8e..e522845a3 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp | |||
| @@ -932,7 +932,11 @@ void GRenderWindow::CaptureScreenshot(const QString& screenshot_path) { | |||
| 932 | Settings::ScreenshotAspectRatio::Auto) { | 932 | Settings::ScreenshotAspectRatio::Auto) { |
| 933 | return Layout::FrameLayoutFromResolutionScale(res_scale); | 933 | return Layout::FrameLayoutFromResolutionScale(res_scale); |
| 934 | } | 934 | } |
| 935 | const u32 height = UISettings::values.screenshot_height.GetValue(); | 935 | u32 height = UISettings::values.screenshot_height.GetValue(); |
| 936 | if (height == 0) { | ||
| 937 | height = Settings::values.use_docked_mode.GetValue() ? 1080 : 720; | ||
| 938 | height *= Settings::values.resolution_info.up_factor; | ||
| 939 | } | ||
| 936 | const u32 width = UISettings::CalculateWidth( | 940 | const u32 width = UISettings::CalculateWidth( |
| 937 | height, UISettings::ConvertScreenshotRatioToRatio( | 941 | height, UISettings::ConvertScreenshotRatioToRatio( |
| 938 | UISettings::values.screenshot_aspect_ratio.GetValue())); | 942 | UISettings::values.screenshot_aspect_ratio.GetValue())); |