Much improved scanlines rendering. Font width can be customized. Redisigned settings. Bloom and scanline quality can be selected. #131

Merged
Swordfish90 merged 9 commits from 2yscanlines into master 2014-09-30 16:45:56 +02:00
Showing only changes of commit cc72a28ee3 - Show all commits

View File

@ -77,6 +77,23 @@ Item{
kterminal.copyClipboard();
}
//When settings are updated sources need to be redrawn.
Connections{
target: shadersettings
onFontScalingChanged: terminalContainer.updateSources();
onFontWidthChanged: terminalContainer.updateSources();
}
Connections{
target: terminalContainer
onWidthChanged: terminalContainer.updateSources();
onHeightChanged: terminalContainer.updateSources();
}
function updateSources() {
kterminal.update();
kterminal.updateImage();
}
KTerminal {
id: kterminal
width: parent.width
@ -95,9 +112,6 @@ Item{
}
}
onWidthChanged: update();
onHeightChanged: update();
FontLoader{ id: fontLoader }
Text{id: fontMetrics; text: "B"; visible: false}