diff options
| author | 2023-08-15 22:57:38 -0400 | |
|---|---|---|
| committer | 2023-08-15 22:57:38 -0400 | |
| commit | bc5ec1049881e0cc3d19eca1f9b854b2bb762540 (patch) | |
| tree | 9e047632fae5f0a9f8bcb096c9cfa4d2d2ae795f | |
| parent | yuzu-qt: Enable specifying screenshot resolution (diff) | |
| download | yuzu-bc5ec1049881e0cc3d19eca1f9b854b2bb762540.tar.gz yuzu-bc5ec1049881e0cc3d19eca1f9b854b2bb762540.tar.xz yuzu-bc5ec1049881e0cc3d19eca1f9b854b2bb762540.zip | |
bootmanager: Consider the default resolution
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())); |