add failsafe for fade, so it can't endup between start and end property value

This commit is contained in:
Brad Hefta-Gaub 2016-03-10 16:24:30 -08:00
parent 9842689ec0
commit 387c156ce3

View file

@ -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);