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

View File

@@ -14,7 +14,10 @@ TerminalFrame{
borderBottom: 232
imageSource: "../images/black-frame.png"
normalsSource: "../images/black-frame-normals.png"
sourceRect: Qt.rect(-80, -90, terminal.width + 160, terminal.height + 180)
sourceRect: Qt.rect(-80 * shadersettings.total_scaling,
-90 * shadersettings.total_scaling,
terminal.width + 160 * shadersettings.total_scaling,
terminal.height + 180 * shadersettings.total_scaling)
shaderString: "FrameShader.qml"
}

View File

@@ -12,7 +12,10 @@ TerminalFrame{
borderTop: 116
borderBottom: 116
imageSource: "../images/screen-frame.png"
sourceRect: Qt.rect(-65, -75, terminal.width + 130, terminal.height + 150)
sourceRect: Qt.rect(-65 * shadersettings.total_scaling,
-75 * shadersettings.total_scaling,
terminal.width + 130 * shadersettings.total_scaling,
terminal.height + 150 * shadersettings.total_scaling)
shaderString: "NoFrameShader.qml"
}

View File

@@ -13,7 +13,10 @@ TerminalFrame{
borderBottom: 116
imageSource: "../images/screen-frame.png"
normalsSource: "../images/screen-frame-normals.png"
sourceRect: Qt.rect(-65, -75, terminal.width + 130, terminal.height + 150)
sourceRect: Qt.rect(-65 * shadersettings.total_scaling,
-75 * shadersettings.total_scaling,
terminal.width + 130 * shadersettings.total_scaling,
terminal.height + 150 * shadersettings.total_scaling)
shaderString: "FrameShader.qml"
}