mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-01-18 20:20:45 +00:00
Unload frame when not needed.
This commit is contained in:
parent
44a63d4aaa
commit
77dc82a381
@ -13,8 +13,6 @@ ShaderEffect {
|
|||||||
property real screenCurvature: appSettings.screenCurvature * appSettings.screenCurvatureSize
|
property real screenCurvature: appSettings.screenCurvature * appSettings.screenCurvatureSize
|
||||||
property real shadowLength: 0.5 * screenCurvature * Utils.lint(0.50, 1.5, _ambientLight)
|
property real shadowLength: 0.5 * screenCurvature * Utils.lint(0.50, 1.5, _ambientLight)
|
||||||
|
|
||||||
visible: screenCurvature != 0
|
|
||||||
|
|
||||||
fragmentShader: "
|
fragmentShader: "
|
||||||
#ifdef GL_ES
|
#ifdef GL_ES
|
||||||
precision mediump float;
|
precision mediump float;
|
||||||
|
@ -481,9 +481,13 @@ Item {
|
|||||||
"gl_FragColor = vec4(finalColor, qt_Opacity);" +
|
"gl_FragColor = vec4(finalColor, qt_Opacity);" +
|
||||||
"}"
|
"}"
|
||||||
|
|
||||||
NewTerminalFrame {
|
Loader {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
blending: true
|
active: screenCurvature !== 0
|
||||||
|
|
||||||
|
sourceComponent: NewTerminalFrame {
|
||||||
|
blending: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onStatusChanged: {
|
onStatusChanged: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user