diff options
author | Allan Sandfeld Jensen <[email protected]> | 2024-10-02 09:57:19 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <[email protected]> | 2024-11-29 15:07:14 +0100 |
commit | 577946c1f05aaaa2a3f9682001aeb4144386b26b (patch) | |
tree | ca8d724b6411b744d6ce9e3b7d7e93386a2ed7f3 /src/gui/doc/snippets | |
parent | 7539b659d9ffbb3c44e45bdb7d9669a6df8915c8 (diff) |
Add Qt::Orientations based flip and flipped functions
Is easier to read and more bool-trap safe. Old form header deprecated from 6.10
Fixes: QTBUG-129575
Change-Id: Id785b9ce159007ce745c04120b2112c8bb9b0802
Reviewed-by: Volker Hilsheimer <[email protected]>
Diffstat (limited to 'src/gui/doc/snippets')
-rw-r--r-- | src/gui/doc/snippets/rhioffscreen/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/doc/snippets/rhioffscreen/main.cpp b/src/gui/doc/snippets/rhioffscreen/main.cpp index c2c6f74dc1b..b7312addaaf 100644 --- a/src/gui/doc/snippets/rhioffscreen/main.cpp +++ b/src/gui/doc/snippets/rhioffscreen/main.cpp @@ -142,7 +142,7 @@ int main(int argc, char **argv) readbackResult.pixelSize.height(), QImage::Format_RGBA8888_Premultiplied); if (rhi->isYUpInFramebuffer()) - image = image.mirrored(); + image.flip(); image.save(QString::asprintf("frame%d.png", frame)); } |