1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-01-31 10:11:20 +00:00

Fix smooth, reenable antialising and remove few useless lines.

This commit is contained in:
Filippo Scognamiglio 2014-09-13 23:19:00 +02:00
parent 67ea080c2e
commit bc87df170b
3 changed files with 4 additions and 7 deletions

View File

@ -45,8 +45,6 @@ Item{
property real _minBlurCoefficient: 0.70 property real _minBlurCoefficient: 0.70
property real _maxBlurCoefficient: 0.90 property real _maxBlurCoefficient: 0.90
property size virtualPxSize: Qt.size(1,1)
property real mBloom: shadersettings.bloom_strength property real mBloom: shadersettings.bloom_strength
property int mScanlines: shadersettings.rasterization property int mScanlines: shadersettings.rasterization
onMScanlinesChanged: restartBlurredSource() onMScanlinesChanged: restartBlurredSource()
@ -168,7 +166,7 @@ Item{
id: kterminalSource id: kterminalSource
sourceItem: kterminal sourceItem: kterminal
hideSource: true hideSource: true
smooth: false smooth: mScanlines == shadersettings.no_rasterization
} }
Loader{ Loader{
id: blurredSourceLoader id: blurredSourceLoader
@ -180,7 +178,8 @@ Item{
recursive: true recursive: true
live: false live: false
hideSource: true hideSource: true
smooth: false
smooth: mScanlines == shadersettings.no_rasterization
function restartBlurSource(){ function restartBlurSource(){
livetimer.restart(); livetimer.restart();

View File

@ -32,8 +32,6 @@ ShaderEffect {
property size txt_Size: Qt.size(frame.sourceRect.width, frame.sourceRect.height) property size txt_Size: Qt.size(frame.sourceRect.width, frame.sourceRect.height)
property real bloom_strength: shadersettings.bloom_strength * 2.5 property real bloom_strength: shadersettings.bloom_strength * 2.5
property int rasterization: shadersettings.rasterization
property real jitter: shadersettings.jitter * 0.007 property real jitter: shadersettings.jitter * 0.007
property real noise_strength: shadersettings.noise_strength property real noise_strength: shadersettings.noise_strength

View File

@ -87,7 +87,7 @@ const ColorEntry base_color_table[TABLE_COLORS] =
// scroll increment used when dragging selection at top/bottom of window. // scroll increment used when dragging selection at top/bottom of window.
// static // static
bool KTerminalDisplay::_antialiasText = false; bool KTerminalDisplay::_antialiasText = true;
bool KTerminalDisplay::HAVE_TRANSPARENCY = true; bool KTerminalDisplay::HAVE_TRANSPARENCY = true;
// we use this to force QPainter to display text in LTR mode // we use this to force QPainter to display text in LTR mode