diff options
author | John Brooks <special@dereferenced.net> | 2010-07-29 09:06:03 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2010-07-29 09:10:21 (GMT) |
commit | 121c5143f1002734ff7aa62785ff14e0e6612aae (patch) | |
tree | 6ac18a879f6ab5997d1f070f86f70c7d5910ddf5 /src/gui | |
parent | 5d68ac574e7edbfd91c53e96c80045effa17a1e9 (diff) | |
download | Qt-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.cpp | 2 |
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; } |