From c1e5f600abaee393e66fb04e2038bc97d82851ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20R=C3=B8dal?= Date: Tue, 24 Jul 2012 15:23:49 +0200 Subject: 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 --- dist/changes-5.0.0 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dist') diff --git a/dist/changes-5.0.0 b/dist/changes-5.0.0 index c5db0852b1..6cea7fed9a 100644 --- a/dist/changes-5.0.0 +++ b/dist/changes-5.0.0 @@ -444,6 +444,10 @@ QtGui * QOpenGLPaintDevice has been added to be able to use QPainter to render into the currently bound context. +* Behavioral change in QImage::fill() on an image with format Format_RGB888: + For consistency with RGB32 and other 32-bit formats, function now expects + image data in RGB layout as opposed to BGR layout. + QtWidgets --------- * QInputContext removed as well as related getters and setters on QWidget and QApplication. -- cgit v1.2.3