summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorJohn Brooks <special@dereferenced.net>2010-07-29 09:06:03 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2010-07-29 09:10:21 (GMT)
commit121c5143f1002734ff7aa62785ff14e0e6612aae (patch)
tree6ac18a879f6ab5997d1f070f86f70c7d5910ddf5 /src/gui
parent5d68ac574e7edbfd91c53e96c80045effa17a1e9 (diff)
downloadQt-121c5143f1002734ff7aa62785ff14e0e6612aae.zip
Qt-121c5143f1002734ff7aa62785ff14e0e6612aae.tar.gz
Qt-121c5143f1002734ff7aa62785ff14e0e6612aae.tar.bz2
Fix the byte order in QImage::fill for 24bpp formats
QImage::fill() was using BGR ordering for 24-bit formats, which is always incorrect as QImage does not support BGR. qrgb888 is the correct 24-bit helper class that does use the proper order. Merge-request: 2440 Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/image/qimage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/image/qimage.cpp b/src/gui/image/qimage.cpp
index 30cf758..52ba2b9 100644
--- a/src/gui/image/qimage.cpp
+++ b/src/gui/image/qimage.cpp
@@ -2010,7 +2010,7 @@ void QImage::fill(uint pixel)
0, 0, d->width, d->height, d->bytes_per_line);
return;
} else if (d->depth == 24) {
- qt_rectfill<quint24>(reinterpret_cast<quint24*>(d->data), pixel,
+ qt_rectfill<qrgb888>(reinterpret_cast<qrgb888*>(d->data), pixel,
0, 0, d->width, d->height, d->bytes_per_line);
return;
}