summaryrefslogtreecommitdiff
path: root/src/yuzu/bootmanager.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-11-21 02:31:32 -0800
committerGitHub <noreply@github.com>2021-11-21 02:31:32 -0800
commit5082712b4e44ebfe48bd587ea2fa38767b7339cb (patch)
treecd2a9393ea5e7d83938baf1f069fc2689e8398af /src/yuzu/bootmanager.cpp
parentba5210675a57d729e427b4f3bc9942cd32f4a5b2 (diff)
parentfe1f06c856b768e9afcc9ba9ab8ef09b7152678c (diff)
Merge pull request #7389 from ameerj/screenshot-1x
Fix screenshot dimensions when at 1x scale
Diffstat (limited to 'src/yuzu/bootmanager.cpp')
-rw-r--r--src/yuzu/bootmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp
index 976acd176..822ba1a34 100644
--- a/src/yuzu/bootmanager.cpp
+++ b/src/yuzu/bootmanager.cpp
@@ -630,7 +630,7 @@ void GRenderWindow::ReleaseRenderTarget() {
void GRenderWindow::CaptureScreenshot(const QString& screenshot_path) {
auto& renderer = system.Renderer();
- const f32 res_scale = VideoCore::GetResolutionScaleFactor(renderer);
+ const f32 res_scale = Settings::values.resolution_info.up_factor;
const Layout::FramebufferLayout layout{Layout::FrameLayoutFromResolutionScale(res_scale)};
screenshot_image = QImage(QSize(layout.width, layout.height), QImage::Format_RGB32);