mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-01-18 04:05:27 +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 shadowLength: 0.5 * screenCurvature * Utils.lint(0.50, 1.5, _ambientLight)
|
||||
|
||||
visible: screenCurvature != 0
|
||||
|
||||
fragmentShader: "
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
|
@ -481,9 +481,13 @@ Item {
|
||||
"gl_FragColor = vec4(finalColor, qt_Opacity);" +
|
||||
"}"
|
||||
|
||||
NewTerminalFrame {
|
||||
Loader {
|
||||
anchors.fill: parent
|
||||
blending: true
|
||||
active: screenCurvature !== 0
|
||||
|
||||
sourceComponent: NewTerminalFrame {
|
||||
blending: true
|
||||
}
|
||||
}
|
||||
|
||||
onStatusChanged: {
|
||||
|
Loading…
Reference in New Issue
Block a user