[konsole] [Bug 373232] Horizontal lines with fractional HiDPI scaling

Christoph Cullmann bugzilla_noreply at kde.org
Wed Oct 2 21:54:33 BST 2019


https://bugs.kde.org/show_bug.cgi?id=373232

--- Comment #112 from Christoph Cullmann <cullmann at kde.org> ---
This small change fixes 99% of the artifacts for me:

diff --git a/src/TerminalDisplay.cpp b/src/TerminalDisplay.cpp
index 5753ae74..fabf5907 100644
--- a/src/TerminalDisplay.cpp
+++ b/src/TerminalDisplay.cpp
@@ -1289,7 +1289,9 @@ void TerminalDisplay::paintEvent(QPaintEvent* pe)
         drawBackground(paint, rect, getBackgroundColor(), true /* use opacity
setting */);
     }

-    paint.setRenderHint(QPainter::Antialiasing, _antialiasText);
+    // only turn on text anti-aliasing, never turn on normal antialiasing
+    // set https://bugreports.qt.io/browse/QTBUG-66036
+    paint.setRenderHint(QPainter::TextAntialiasing, _antialiasText);

     foreach(const QRect & rect, dirtyImageRegion) {
         drawContents(paint, rect);

I will apply that in master, please test this.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list