mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 16:44:04 +02:00
add failsafe for fade, so it can't endup between start and end property value
This commit is contained in:
parent
9842689ec0
commit
387c156ce3
1 changed files with 0 additions and 6 deletions
|
@ -419,9 +419,6 @@ static const float FADE_IN_ALPHA = 1.0f;
|
|||
static const float FADE_OUT_ALPHA = 0.0f;
|
||||
|
||||
void CompositorHelper::startFadeFailsafe(float endValue) {
|
||||
return;
|
||||
|
||||
qDebug() << __FUNCTION__;
|
||||
_fadeStarted = usecTimestampNow();
|
||||
_fadeFailsafeEndValue = endValue;
|
||||
|
||||
|
@ -432,9 +429,6 @@ void CompositorHelper::startFadeFailsafe(float endValue) {
|
|||
}
|
||||
|
||||
void CompositorHelper::checkFadeFailsafe() {
|
||||
return;
|
||||
|
||||
qDebug() << __FUNCTION__;
|
||||
auto elapsedInFade = usecTimestampNow() - _fadeStarted;
|
||||
if (elapsedInFade > FADE_DURATION) {
|
||||
setAlpha(_fadeFailsafeEndValue);
|
||||
|
|
Loading…
Reference in a new issue