re-fix bouncing startup feedback

BUG: 304253
FIXED-IN: 4.11
REVIEW: 111729
This commit is contained in:
Thomas Lübking 2013-07-26 14:09:06 +02:00
parent f4827fbac9
commit bc80d2417a

View file

@ -155,7 +155,9 @@ void StartupFeedbackEffect::prePaintScreen(ScreenPrePaintData& data, int time)
switch(m_type) { switch(m_type) {
case BouncingFeedback: case BouncingFeedback:
m_progress = (m_progress + time) % BOUNCE_DURATION; m_progress = (m_progress + time) % BOUNCE_DURATION;
m_frame = qRound((qreal)m_progress / (qreal)BOUNCE_FRAME_DURATION) % BOUNCE_FRAMES;; m_frame = qRound((qreal)m_progress / (qreal)BOUNCE_FRAME_DURATION) % BOUNCE_FRAMES;
m_currentGeometry = feedbackRect(); // bounce alters geometry with m_frame
data.paint.unite(m_currentGeometry);
break; break;
case BlinkingFeedback: case BlinkingFeedback:
m_progress = (m_progress + time) % BLINKING_DURATION; m_progress = (m_progress + time) % BLINKING_DURATION;