fix fade out

svn path=/trunk/KDE/kdelibs/; revision=1109248
This commit is contained in:
Marco Martin 2010-03-30 21:24:04 +00:00
parent 580b91d111
commit 8269a5055e

View File

@ -156,7 +156,7 @@ void PixmapTransition::updateCurrentTime(int currentTime)
} }
QPainter p(&m_currentPixmap); QPainter p(&m_currentPixmap);
p.setCompositionMode(QPainter::CompositionMode_DestinationIn); p.setCompositionMode(QPainter::CompositionMode_DestinationIn);
p.fillRect(m_currentPixmap.rect(), QColor(0, 0, 0, (int)(((qreal)255)*delta))); p.fillRect(m_currentPixmap.rect(), QColor(0, 0, 0, (int)(254 - ((qreal)254)*delta)));
p.end(); p.end();
} }
} }