From 4c5f12ec6947c9d39157aba5bb8b815523c7903a Mon Sep 17 00:00:00 2001 From: Zephyron Date: Wed, 8 Oct 2025 16:24:54 +1000 Subject: [PATCH] fix(qt): Use QImage::mirrored() instead of non-existent flipped() QImage does not have a flipped() method. Replace with the correct mirrored(false, true) call to perform vertical image flipping for screenshot capture. Signed-off-by: Zephyron --- src/citron/bootmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/citron/bootmanager.cpp b/src/citron/bootmanager.cpp index aedf3d660..d9fa9d9a6 100644 --- a/src/citron/bootmanager.cpp +++ b/src/citron/bootmanager.cpp @@ -998,7 +998,7 @@ void GRenderWindow::CaptureScreenshot(const QString& screenshot_path) { screenshot_image.bits(), [=, this](bool invert_y) { const std::string std_screenshot_path = screenshot_path.toStdString(); - if ((invert_y ? screenshot_image.flipped(Qt::Vertical) : screenshot_image).save(screenshot_path)) { + if ((invert_y ? screenshot_image.mirrored(false, true) : screenshot_image).save(screenshot_path)) { LOG_INFO(Frontend, "Screenshot saved to \"{}\"", std_screenshot_path); } else { LOG_ERROR(Frontend, "Failed to save screenshot to \"{}\"", std_screenshot_path);