From bc87df170b3f12cdcf88140edfece5a1f87e1b81 Mon Sep 17 00:00:00 2001
From: Filippo Scognamiglio <flscogna@gmail.com>
Date: Sat, 13 Sep 2014 23:19:00 +0200
Subject: [PATCH] Fix smooth, reenable antialising and remove few useless
 lines.

---
 app/qml/PreprocessedTerminal.qml           | 7 +++----
 app/qml/ShaderTerminal.qml                 | 2 --
 konsole-qml-plugin/src/TerminalDisplay.cpp | 2 +-
 3 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/app/qml/PreprocessedTerminal.qml b/app/qml/PreprocessedTerminal.qml
index d0e114d..8526246 100644
--- a/app/qml/PreprocessedTerminal.qml
+++ b/app/qml/PreprocessedTerminal.qml
@@ -45,8 +45,6 @@ Item{
     property real _minBlurCoefficient: 0.70
     property real _maxBlurCoefficient: 0.90
 
-    property size virtualPxSize: Qt.size(1,1)
-
     property real mBloom: shadersettings.bloom_strength
     property int mScanlines: shadersettings.rasterization
     onMScanlinesChanged: restartBlurredSource()
@@ -168,7 +166,7 @@ Item{
         id: kterminalSource
         sourceItem: kterminal
         hideSource: true
-        smooth: false
+        smooth: mScanlines == shadersettings.no_rasterization
     }
     Loader{
         id: blurredSourceLoader
@@ -180,7 +178,8 @@ Item{
             recursive: true
             live: false
             hideSource: true
-            smooth: false
+
+            smooth: mScanlines == shadersettings.no_rasterization
 
             function restartBlurSource(){
                 livetimer.restart();
diff --git a/app/qml/ShaderTerminal.qml b/app/qml/ShaderTerminal.qml
index 42c59ed..52d4e22 100644
--- a/app/qml/ShaderTerminal.qml
+++ b/app/qml/ShaderTerminal.qml
@@ -32,8 +32,6 @@ ShaderEffect {
     property size txt_Size: Qt.size(frame.sourceRect.width, frame.sourceRect.height)
     property real bloom_strength: shadersettings.bloom_strength * 2.5
 
-    property int rasterization: shadersettings.rasterization
-
     property real jitter: shadersettings.jitter * 0.007
 
     property real noise_strength: shadersettings.noise_strength
diff --git a/konsole-qml-plugin/src/TerminalDisplay.cpp b/konsole-qml-plugin/src/TerminalDisplay.cpp
index 51fbd3d..e382199 100644
--- a/konsole-qml-plugin/src/TerminalDisplay.cpp
+++ b/konsole-qml-plugin/src/TerminalDisplay.cpp
@@ -87,7 +87,7 @@ const ColorEntry base_color_table[TABLE_COLORS] =
 // scroll increment used when dragging selection at top/bottom of window.
 
 // static
-bool KTerminalDisplay::_antialiasText = false;
+bool KTerminalDisplay::_antialiasText = true;
 bool KTerminalDisplay::HAVE_TRANSPARENCY = true;
 
 // we use this to force QPainter to display text in LTR mode