From 6eb4095f96ef6a68d6eca61927ec91248271a5a4 Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Fri, 22 Apr 2022 21:39:33 +0200 Subject: [PATCH] Port QMatrix to QTransform --- src/terminalDisplay/TerminalPainter.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/terminalDisplay/TerminalPainter.cpp b/src/terminalDisplay/TerminalPainter.cpp index c8b3d597..82e937ed 100644 --- a/src/terminalDisplay/TerminalPainter.cpp +++ b/src/terminalDisplay/TerminalPainter.cpp @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include @@ -181,7 +180,7 @@ void TerminalPainter::drawContents(Character *image, len++; } - QMatrix textScale; + QTransform textScale; bool doubleHeight = false; bool doubleWidthLine = false; @@ -204,7 +203,7 @@ void TerminalPainter::drawContents(Character *image, } // Apply text scaling matrix - paint.setWorldTransform(QTransform(textScale), true); + paint.setWorldTransform(textScale, true); // Calculate the area in which the text will be drawn QRect textArea = @@ -238,7 +237,7 @@ void TerminalPainter::drawContents(Character *image, y < lineProperties.size() ? lineProperties[y] : 0); } - paint.setWorldTransform(QTransform(textScale.inverted()), true); + paint.setWorldTransform(textScale.inverted(), true); x += len - 1; }