Remove not-needed cast to int

The compared values are uint, so there's no need to cast and it is
incorrect in this case.

REVIEW: 107469
This commit is contained in:
Martin Gräßlin 2012-11-26 10:55:26 +01:00
parent b0da055850
commit 0ffc8cefc7

View file

@ -673,7 +673,7 @@ void Compositor::setCompositeTimer()
else // w/o vsync we just jump to the next demanded tick else // w/o vsync we just jump to the next demanded tick
// the "1" will ensure we don't block out the eventloop - the system's just not faster // the "1" will ensure we don't block out the eventloop - the system's just not faster
// "0" would be sufficient, but the compositor isn't the WMs only task // "0" would be sufficient, but the compositor isn't the WMs only task
m_nextFrameDelay = padding = (padding > (int)fpsInterval) ? 1 : ((fpsInterval - padding) >> 10); m_nextFrameDelay = padding = (padding > fpsInterval) ? 1 : ((fpsInterval - padding) >> 10);
compositeTimer.start(qMin(padding, 250u), this); // force 4fps minimum compositeTimer.start(qMin(padding, 250u), this); // force 4fps minimum
} }