Introducing terminal scaling for performance reasons on old PCs.

This commit is contained in:
Filippo Scognamiglio
2014-04-02 22:07:37 +02:00
parent 3abdb9424c
commit 1b94fb6b22
7 changed files with 38 additions and 19 deletions
+15 -12
View File
@@ -67,10 +67,21 @@ ApplicationWindow{
}
}
Loader{
id: frame
property rect sourceRect: item.sourceRect
anchors.fill: parent
z: 2.1
source: shadersettings.frame_source
}
Item{
id: maincontainer
anchors.fill: parent
clip: true
anchors.centerIn: parent
width: parent.width * shadersettings.window_scaling
height: parent.height * shadersettings.window_scaling
scale: 1.0 / shadersettings.window_scaling
clip: false
Image{
id: randtexture
source: "frames/images/randfunction.png"
@@ -94,22 +105,14 @@ ApplicationWindow{
}
Terminal{
id: terminal
width: parent.width
height: parent.height
width: parent.width * shadersettings.terminal_scaling
height: parent.height * shadersettings.terminal_scaling
}
ShaderEffectSource{
id: theSource
sourceItem: terminal
sourceRect: frame.sourceRect
}
Loader{
id: frame
property rect sourceRect: item.sourceRect
anchors.fill: parent
z: 2.1
source: shadersettings.frame_source
}
ShaderManager{
id: shadercontainer
anchors.fill: parent