From c88f6033863c2aed12c5c2778e1d075670212de4 Mon Sep 17 00:00:00 2001 From: Alf Gaida Date: Mon, 11 Jan 2016 18:37:17 +0100 Subject: [PATCH] Adding upstream version 0.6.0+20160108. --- lib/TerminalDisplay.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/TerminalDisplay.cpp b/lib/TerminalDisplay.cpp index 1434ee6..b3511f5 100644 --- a/lib/TerminalDisplay.cpp +++ b/lib/TerminalDisplay.cpp @@ -1494,12 +1494,10 @@ void TerminalDisplay::drawContents(QPainter &paint, const QRect &rect) bool save__fixedFont = _fixedFont; if (lineDraw) _fixedFont = false; - if (doubleWidth) - _fixedFont = false; unistr.resize(p); // Create a text scaling matrix for double width and double height lines. - QMatrix textScale; + QTransform textScale; if (y < _lineProperties.size()) { @@ -1511,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); @@ -1535,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) {