From 10e17968e4457da2b91675984e17009ee6e1e7aa Mon Sep 17 00:00:00 2001 From: rago1975 Date: Fri, 8 Jan 2016 00:00:30 +0900 Subject: [PATCH] Use function setWorldTranfer for Qpainter instead of setWorldMatrix --- lib/TerminalDisplay.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/TerminalDisplay.cpp b/lib/TerminalDisplay.cpp index 70d5477..b3511f5 100644 --- a/lib/TerminalDisplay.cpp +++ b/lib/TerminalDisplay.cpp @@ -1497,7 +1497,7 @@ void TerminalDisplay::drawContents(QPainter &paint, const QRect &rect) unistr.resize(p); // Create a text scaling matrix for double width and double height lines. - QMatrix textScale; + QTransform textScale; if (y < _lineProperties.size()) { @@ -1509,7 +1509,7 @@ void TerminalDisplay::drawContents(QPainter &paint, const QRect &rect) } //Apply text scaling matrix. - paint.setWorldMatrix(textScale, true); + paint.setWorldTransform(textScale, true); //calculate the area in which the text will be drawn QRect textArea = calculateTextArea(tLx, tLy, x, y, len); @@ -1533,7 +1533,7 @@ void TerminalDisplay::drawContents(QPainter &paint, const QRect &rect) _fixedFont = save__fixedFont; //reset back to single-width, single-height _lines - paint.setWorldMatrix(textScale.inverted(), true); + paint.setWorldTransform(textScale.inverted(), true); if (y < _lineProperties.size()-1) {