OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac7b0f4
)
use QImage::constBits() in QRasterWindowSurface::prepareBuffer()
author
Ivailo Monev
<xakepa10@laimg.moc>
Wed, 18 Dec 2019 22:50:45 +0000
(22:50 +0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Wed, 18 Dec 2019 22:50:45 +0000
(22:50 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/painting/qwindowsurface_raster.cpp
patch
|
blob
|
history
diff --git
a/src/gui/painting/qwindowsurface_raster.cpp
b/src/gui/painting/qwindowsurface_raster.cpp
index
5409eeb
..
e56c549
100644
(file)
--- a/
src/gui/painting/qwindowsurface_raster.cpp
+++ b/
src/gui/painting/qwindowsurface_raster.cpp
@@
-253,7
+253,7
@@
void QRasterWindowSurface::prepareBuffer(QImage::Format format)
d->image = new QImage(width, height, format);
if (oldImage && d->inSetGeometry && hasStaticContents()) {
- const uchar *src = oldImage->
b
its();
+ const uchar *src = oldImage->
constB
its();
uchar *dst = d->image->bits();
const int srcBytesPerLine = oldImage->bytesPerLine();