mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-01-31 02:01:19 +00:00
Tiny fixes to burn-in.
This commit is contained in:
parent
ef9f412e5f
commit
997131ba64
@ -29,7 +29,6 @@ Loader {
|
|||||||
property real lastUpdate: 0
|
property real lastUpdate: 0
|
||||||
property real prevLastUpdate: 0
|
property real prevLastUpdate: 0
|
||||||
|
|
||||||
property real delay: (1.0 / appSettings.fps) * 1000
|
|
||||||
property real burnIn: appSettings.burnIn
|
property real burnIn: appSettings.burnIn
|
||||||
property real burnInFadeTime: 1 / Utils.lint(_minBurnInFadeTime, _maxBurnInFadeTime, burnIn)
|
property real burnInFadeTime: 1 / Utils.lint(_minBurnInFadeTime, _maxBurnInFadeTime, burnIn)
|
||||||
property real _minBurnInFadeTime: appSettings.minBurnInFadeTime
|
property real _minBurnInFadeTime: appSettings.minBurnInFadeTime
|
||||||
@ -49,7 +48,7 @@ Loader {
|
|||||||
item.source.scheduleUpdate()
|
item.source.scheduleUpdate()
|
||||||
}
|
}
|
||||||
|
|
||||||
function restartBlurSource(){
|
function restartBlurSource() {
|
||||||
prevLastUpdate = timeManager.time
|
prevLastUpdate = timeManager.time
|
||||||
lastUpdate = prevLastUpdate
|
lastUpdate = prevLastUpdate
|
||||||
completelyUpdate()
|
completelyUpdate()
|
||||||
@ -82,7 +81,7 @@ Loader {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Restart blurred source settings change.
|
// Restart blurred source settings change.
|
||||||
Connections{
|
Connections {
|
||||||
target: appSettings
|
target: appSettings
|
||||||
|
|
||||||
function onBurnInChanged() {
|
function onBurnInChanged() {
|
||||||
@ -101,14 +100,6 @@ Loader {
|
|||||||
burnInEffect.restartBlurSource()
|
burnInEffect.restartBlurSource()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
|
||||||
target: kterminalScrollbar
|
|
||||||
|
|
||||||
function onOpacityChanged() {
|
|
||||||
completelyUpdate()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ShaderLibrary {
|
ShaderLibrary {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user