diff options
| author | 2023-08-16 00:18:16 -0400 | |
|---|---|---|
| committer | 2023-08-16 00:18:16 -0400 | |
| commit | 76a03e99b68ea691029cf7eef20a55e3cb1837ad (patch) | |
| tree | b6cefcb0db9328e07d9d05854ffc0fc0d49dd883 /src | |
| parent | configure_ui: Update the screenshots data (diff) | |
| download | yuzu-76a03e99b68ea691029cf7eef20a55e3cb1837ad.tar.gz yuzu-76a03e99b68ea691029cf7eef20a55e3cb1837ad.tar.xz yuzu-76a03e99b68ea691029cf7eef20a55e3cb1837ad.zip | |
bootmanager: Remove old path
Causes issues with different selected aspect ratios in graphics.
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/bootmanager.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index e522845a3..2a9f423a0 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp | |||
| @@ -918,7 +918,6 @@ void GRenderWindow::ReleaseRenderTarget() { | |||
| 918 | 918 | ||
| 919 | void GRenderWindow::CaptureScreenshot(const QString& screenshot_path) { | 919 | void GRenderWindow::CaptureScreenshot(const QString& screenshot_path) { |
| 920 | auto& renderer = system.Renderer(); | 920 | auto& renderer = system.Renderer(); |
| 921 | const f32 res_scale = Settings::values.resolution_info.up_factor; | ||
| 922 | 921 | ||
| 923 | if (renderer.IsScreenshotPending()) { | 922 | if (renderer.IsScreenshotPending()) { |
| 924 | LOG_WARNING(Render, | 923 | LOG_WARNING(Render, |
| @@ -926,15 +925,11 @@ void GRenderWindow::CaptureScreenshot(const QString& screenshot_path) { | |||
| 926 | return; | 925 | return; |
| 927 | } | 926 | } |
| 928 | 927 | ||
| 929 | const Layout::FramebufferLayout layout{[res_scale]() { | 928 | const Layout::FramebufferLayout layout{[]() { |
| 930 | if (UISettings::values.screenshot_height.GetValue() == 0 && | ||
| 931 | UISettings::values.screenshot_aspect_ratio.GetValue() == | ||
| 932 | Settings::ScreenshotAspectRatio::Auto) { | ||
| 933 | return Layout::FrameLayoutFromResolutionScale(res_scale); | ||
| 934 | } | ||
| 935 | u32 height = UISettings::values.screenshot_height.GetValue(); | 929 | u32 height = UISettings::values.screenshot_height.GetValue(); |
| 936 | if (height == 0) { | 930 | if (height == 0) { |
| 937 | height = Settings::values.use_docked_mode.GetValue() ? 1080 : 720; | 931 | height = Settings::values.use_docked_mode.GetValue() ? Layout::ScreenDocked::Height |
| 932 | : Layout::ScreenUndocked::Height; | ||
| 938 | height *= Settings::values.resolution_info.up_factor; | 933 | height *= Settings::values.resolution_info.up_factor; |
| 939 | } | 934 | } |
| 940 | const u32 width = UISettings::CalculateWidth( | 935 | const u32 width = UISettings::CalculateWidth( |