Fix a 64-bit issue in BlurEffect::updateBlurRegion().

BUG: 235620
FIXED-IN: 4.5 beta2

svn path=/trunk/KDE/kdebase/workspace/; revision=1130567
icc-effect-5.14.5
Fredrik Höglund 2010-05-25 17:34:17 +00:00
parent 69bc0f3a0e
commit e9f419c819
1 changed files with 3 additions and 3 deletions

View File

@ -82,9 +82,9 @@ void BlurEffect::updateBlurRegion(EffectWindow *w) const
QRegion region;
const QByteArray value = w->readProperty(net_wm_blur_region, XA_CARDINAL, 32);
if (value.size() > 0 && !(value.size() % (4 * sizeof(quint32)))) {
const quint32 *cardinals = reinterpret_cast<const quint32*>(value.constData());
for (unsigned int i = 0; i < value.size() / sizeof(quint32);) {
if (value.size() > 0 && !(value.size() % (4 * sizeof(unsigned long)))) {
const unsigned long *cardinals = reinterpret_cast<const unsigned long*>(value.constData());
for (unsigned int i = 0; i < value.size() / sizeof(unsigned long);) {
int x = cardinals[i++];
int y = cardinals[i++];
int w = cardinals[i++];