Don't waste CPU

This commit is contained in:
Tobias Rundstrom 2006-02-20 00:56:26 -03:00
parent 270fdfb97e
commit a50e7afd4a

View file

@ -33,6 +33,10 @@ NumberDisplay::setPixmaps (Skin *skin)
void
NumberDisplay::setNumber (uint n1, uint n2)
{
if (m_n1 == n1 && m_n2 == n2) {
/* Do nothing */
return;
}
MainWindow *mw = (MainWindow *)((SkinDisplay *)parent ())->getMW();
m_n1 = n1;