mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
9ceaf456e5
commit
8fa4274974
@ -625,7 +625,7 @@ static QImage prepareSurface(QImage srcimg, int w, int h, bool doReflections, bo
|
||||
result.setText(OFFSET_KEY, QString::number(left));
|
||||
result.setText(WIDTH_KEY, QString::number(temp.width()));
|
||||
for (y = 0; y < temp.height(); y++) {
|
||||
const uchar *src = temp.scanLine(y);
|
||||
const uchar *src = temp.constScanLine(y);
|
||||
uchar *dest = img.scanLine(top + y) + (bpp * left);
|
||||
memcpy(dest, src, x);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user