Made QImage::fill(uint pixel) for RGB888 accept QRgb values.
authorSamuel Rødal <samuel.rodal@nokia.com>
Tue, 24 Jul 2012 13:23:49 +0000 (15:23 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 29 Aug 2012 14:53:00 +0000 (16:53 +0200)
commitc1e5f600abaee393e66fb04e2038bc97d82851ef
tree402474ef017437e1dfe0b2e89da0c85627a17c6e
parentf3b45ffa6159bc8b7ecfb0578bbb5cb826de1338
Made QImage::fill(uint pixel) for RGB888 accept QRgb values.

Previously QImage::fill() for Format_RGB888 expected a BGR value
instead of the RGB order defined by QRgb, making it counter intuitive to
use related to the 32-bit formats.

Fixed the QPixelLayout data for RGB888 and changed the byte order of
quint24 based on what the optimized image conversion routines expect.

Change-Id: I72926debbc6f5b5cb10b8aa0b2a2a916a04db946
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
dist/changes-5.0.0
src/gui/painting/qdrawhelper.cpp
src/gui/painting/qdrawhelper_p.h
tests/auto/gui/image/qimage/tst_qimage.cpp
tests/auto/gui/painting/qpainter/tst_qpainter.cpp