Fix a 64-bit issue in WindowEffects::enableBlurBehind().

CCBUG: 235620

svn path=/trunk/KDE/kdelibs/; revision=1130565
This commit is contained in:
Fredrik Höglund 2010-05-25 17:30:23 +00:00
parent c7e7ea0f6d
commit 3efaa0c487

View File

@ -309,9 +309,8 @@ void enableBlurBehind(WId window, bool enable, const QRegion &region)
if (enable) {
QVector<QRect> rects = region.rects();
QVector<quint32> data;
for (int i = 0; i < rects.count(); i++) {
const QRect r = rects[i];
QVector<unsigned long> data;
foreach (const QRect &r, rects) {
data << r.x() << r.y() << r.width() << r.height();
}