diff options
author | Fernando S <fsahmkow27@gmail.com> | 2021-08-01 13:31:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-01 13:31:33 +0200 |
commit | 30f0b7cf31f5dd229b96c0064078d07c9ace3a4c (patch) | |
tree | a8c03e0315dffe97687fc3deeaea0f26bbba6811 /src/yuzu/bootmanager.cpp | |
parent | db32c3762bda2e0c8e9698783042aa0e1c0f04c1 (diff) | |
parent | 7ac99bb127fe6c09794b7e7ebe4d1c518817f40a (diff) |
Merge pull request #6720 from ameerj/vk-screenshot
renderer_vulkan: Implement screenshots
Diffstat (limited to 'src/yuzu/bootmanager.cpp')
-rw-r--r-- | src/yuzu/bootmanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index 25b658b2a..2e0ade815 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp @@ -632,9 +632,9 @@ void GRenderWindow::CaptureScreenshot(u32 res_scale, const QString& screenshot_p screenshot_image = QImage(QSize(layout.width, layout.height), QImage::Format_RGB32); renderer.RequestScreenshot( screenshot_image.bits(), - [=, this] { + [=, this](bool invert_y) { const std::string std_screenshot_path = screenshot_path.toStdString(); - if (screenshot_image.mirrored(false, true).save(screenshot_path)) { + if (screenshot_image.mirrored(false, invert_y).save(screenshot_path)) { LOG_INFO(Frontend, "Screenshot saved to \"{}\"", std_screenshot_path); } else { LOG_ERROR(Frontend, "Failed to save screenshot to \"{}\"", std_screenshot_path); |