diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-08-16 04:57:38 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-08-16 04:57:38 +0200 |
commit | bc5ec1049881e0cc3d19eca1f9b854b2bb762540 (patch) | |
tree | 9e047632fae5f0a9f8bcb096c9cfa4d2d2ae795f /src | |
parent | yuzu-qt: Enable specifying screenshot resolution (diff) | |
download | yuzu-bc5ec1049881e0cc3d19eca1f9b854b2bb762540.tar yuzu-bc5ec1049881e0cc3d19eca1f9b854b2bb762540.tar.gz yuzu-bc5ec1049881e0cc3d19eca1f9b854b2bb762540.tar.bz2 yuzu-bc5ec1049881e0cc3d19eca1f9b854b2bb762540.tar.lz yuzu-bc5ec1049881e0cc3d19eca1f9b854b2bb762540.tar.xz yuzu-bc5ec1049881e0cc3d19eca1f9b854b2bb762540.tar.zst yuzu-bc5ec1049881e0cc3d19eca1f9b854b2bb762540.zip |
Diffstat (limited to 'src')
-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) { 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())); |