re-fix bouncing startup feedback
BUG: 304253 FIXED-IN: 4.11 REVIEW: 111729
This commit is contained in:
parent
f4827fbac9
commit
bc80d2417a
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue