Some cleanups.

This commit is contained in:
Filippo Scognamiglio
2014-07-12 01:51:53 +02:00
parent 009f2dd998
commit a96f8ec220
6 changed files with 41 additions and 147 deletions

View File

@@ -2,8 +2,8 @@ import QtQuick 2.2
Item{
id: framecontainer
property int textureWidth
property int textureHeight
property int textureWidth: terminalWindow.width
property int textureHeight: terminalWindow.height
property int addedWidth
property int addedHeight
@@ -13,7 +13,6 @@ Item{
property int borderBottom
property string imageSource
property string normalsSource
property rect sourceRect
property string shaderString
//Value used to create the rect used to add the border to the texture
@@ -28,6 +27,11 @@ Item{
property real distortionCoefficient
property rect sourceRect: Qt.rect(-rectX * shadersettings.window_scaling,
-rectY * shadersettings.window_scaling,
terminal.width + 2*rectX * shadersettings.window_scaling,
terminal.height + 2*rectY * shadersettings.window_scaling)
BorderImage{
id: frameimage
anchors.centerIn: parent