mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
e4714bf1ab
commit
2db8cac86a
@ -629,7 +629,7 @@ void overlay(const QImage &image, QImage &canvas, unsigned int left, unsigned in
|
|||||||
for (r = 0; r < height; r++) {
|
for (r = 0; r < height; r++) {
|
||||||
src = reinterpret_cast<const QRgb*>(img.constScanLine(r));
|
src = reinterpret_cast<const QRgb*>(img.constScanLine(r));
|
||||||
dest = reinterpret_cast<QRgb*>(canvas.scanLine(r + top));
|
dest = reinterpret_cast<QRgb*>(canvas.scanLine(r + top));
|
||||||
memcpy(dest + left, src, (right - left) * sizeof(QRgb));
|
memcpy(dest + left, src, width * sizeof(QRgb));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user