QIMAGE_SANITYCHECK_MEMORY(maskImage);
maskImage.fill(0);
uchar *s = maskImage.bits();
+ const int bpl = maskImage.bytesPerLine();
if (depth() == 32) {
for (int h = 0; h < d->height; h++) {
if (sl[w] == color)
*(s + (w >> 3)) |= (1 << (w & 7));
}
- s += maskImage.bytesPerLine();
+ s += bpl;
}
} else {
for (int h = 0; h < d->height; h++) {
if ((uint) pixel(w, h) == color)
*(s + (w >> 3)) |= (1 << (w & 7));
}
- s += maskImage.bytesPerLine();
+ s += bpl;
}
}
if (mode == Qt::MaskOutColor)