Fix rounding of sparse QImage-s.
This commit is contained in:
parent
593c50f623
commit
721d143c89
1 changed files with 4 additions and 4 deletions
|
|
@ -469,10 +469,10 @@ void prepareRound(
|
||||||
Assert(image.bytesPerLine() == (imageIntsPerLine << 2));
|
Assert(image.bytesPerLine() == (imageIntsPerLine << 2));
|
||||||
|
|
||||||
auto ints = reinterpret_cast<uint32*>(image.bits());
|
auto ints = reinterpret_cast<uint32*>(image.bits());
|
||||||
auto intsTopLeft = ints + target.x() + target.y() * imageWidth;
|
auto intsTopLeft = ints + target.x() + target.y() * imageIntsPerLine;
|
||||||
auto intsTopRight = ints + target.x() + target.width() - cornerWidth + target.y() * imageWidth;
|
auto intsTopRight = ints + target.x() + target.width() - cornerWidth + target.y() * imageIntsPerLine;
|
||||||
auto intsBottomLeft = ints + target.x() + (target.y() + target.height() - cornerHeight) * imageWidth;
|
auto intsBottomLeft = ints + target.x() + (target.y() + target.height() - cornerHeight) * imageIntsPerLine;
|
||||||
auto intsBottomRight = ints + target.x() + target.width() - cornerWidth + (target.y() + target.height() - cornerHeight) * imageWidth;
|
auto intsBottomRight = ints + target.x() + target.width() - cornerWidth + (target.y() + target.height() - cornerHeight) * imageIntsPerLine;
|
||||||
auto maskCorner = [&](uint32 *imageInts, const QImage &mask) {
|
auto maskCorner = [&](uint32 *imageInts, const QImage &mask) {
|
||||||
auto maskWidth = mask.width();
|
auto maskWidth = mask.width();
|
||||||
auto maskHeight = mask.height();
|
auto maskHeight = mask.height();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue