Fix kwin crash when using animated effects.
Bug: 263383
This commit is contained in:
parent
ad0c869c7f
commit
b9d4794977
1 changed files with 2 additions and 2 deletions
|
@ -150,11 +150,11 @@ void StartupFeedbackEffect::prePaintScreen(ScreenPrePaintData& data, int time)
|
|||
switch(m_type) {
|
||||
case BouncingFeedback:
|
||||
m_progress = (m_progress + time) % BOUNCE_DURATION;
|
||||
m_frame = qRound((qreal)m_progress / (qreal)BOUNCE_FRAME_DURATION);
|
||||
m_frame = qRound((qreal)m_progress / (qreal)BOUNCE_FRAME_DURATION) % BOUNCE_FRAMES;;
|
||||
break;
|
||||
case BlinkingFeedback:
|
||||
m_progress = (m_progress + time) % BLINKING_DURATION;
|
||||
m_frame = qRound((qreal)m_progress / (qreal)BLINKING_FRAME_DURATION);
|
||||
m_frame = qRound((qreal)m_progress / (qreal)BLINKING_FRAME_DURATION) % BLINKING_FRAMES;
|
||||
break;
|
||||
default:
|
||||
break; // nothing
|
||||
|
|
Loading…
Reference in a new issue