diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-08-16 06:18:47 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-08-16 06:18:47 +0200 |
commit | 96c98d09cb9200c9b623404381c33b3379411eeb (patch) | |
tree | 16dec6740a38964ac3884ab14f4b150190541e64 /src/yuzu/bootmanager.cpp | |
parent | bootmanager: Remove old path (diff) | |
download | yuzu-96c98d09cb9200c9b623404381c33b3379411eeb.tar yuzu-96c98d09cb9200c9b623404381c33b3379411eeb.tar.gz yuzu-96c98d09cb9200c9b623404381c33b3379411eeb.tar.bz2 yuzu-96c98d09cb9200c9b623404381c33b3379411eeb.tar.lz yuzu-96c98d09cb9200c9b623404381c33b3379411eeb.tar.xz yuzu-96c98d09cb9200c9b623404381c33b3379411eeb.tar.zst yuzu-96c98d09cb9200c9b623404381c33b3379411eeb.zip |
Diffstat (limited to 'src/yuzu/bootmanager.cpp')
-rw-r--r-- | src/yuzu/bootmanager.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index 2a9f423a0..24630e4cb 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp @@ -932,9 +932,13 @@ void GRenderWindow::CaptureScreenshot(const QString& screenshot_path) { : Layout::ScreenUndocked::Height; height *= Settings::values.resolution_info.up_factor; } - const u32 width = UISettings::CalculateWidth( - height, UISettings::ConvertScreenshotRatioToRatio( - UISettings::values.screenshot_aspect_ratio.GetValue())); + const auto selected_ratio = UISettings::values.screenshot_aspect_ratio.GetValue(); + const u32 width = + selected_ratio == Settings::ScreenshotAspectRatio::Unspecified + ? UISettings::values.screenshot_width.GetValue() + : UISettings::CalculateWidth( + height, UISettings::ConvertScreenshotRatioToRatio( + UISettings::values.screenshot_aspect_ratio.GetValue())); return Layout::DefaultFrameLayout(width, height); }()}; |