From 42177add17e3386c03a1e798eb6345d37acbf29b Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sun, 16 Nov 2025 23:44:56 +0100 Subject: [PATCH] Qt: fix image flip warning on newer Qt --- rpcs3/rpcs3qt/qt_camera_video_sink.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rpcs3/rpcs3qt/qt_camera_video_sink.cpp b/rpcs3/rpcs3qt/qt_camera_video_sink.cpp index bcfd573afe..c13fcb781d 100644 --- a/rpcs3/rpcs3qt/qt_camera_video_sink.cpp +++ b/rpcs3/rpcs3qt/qt_camera_video_sink.cpp @@ -71,7 +71,14 @@ bool qt_camera_video_sink::present(const QVideoFrame& frame) // Flip image if necessary if (flip_horizontally || flip_vertically) { +#if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0) + Qt::Orientations orientation {}; + orientation.setFlag(Qt::Orientation::Horizontal, flip_horizontally); + orientation.setFlag(Qt::Orientation::Vertical, flip_vertically); + image.flip(orientation); +#else image.mirror(flip_horizontally, flip_vertically); +#endif } if (image.format() != QImage::Format_RGBA8888)