qt5base-lts/tests/auto/gui/image/qimage
Allan Sandfeld Jensen ff70c39ebc Ensure QImage::pixel() on RGB32 images returns valid QRgb values
Currently QImage::pixel() returns the raw underlying pixel values for
RGB32. For all other pixel formats the returned value is either valid
ARGB32 or ARGB32PM.

This patch masks the undefined alpha field in RGB32 so that the return
value is well defined QRgb. It also fixes one test that relied on the
previous behavior.

Change-Id: If37463528268b7419733499d1f7bfd0d1097d21e
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
2014-01-29 19:41:57 +01:00
..
images Moving tiff image format support and libtiff out of qtbase 2012-01-31 14:31:04 +01:00
.gitignore Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
qimage.pro Inplace versions of QImage rgbSwapped() and mirrored() for rvalue refs 2014-01-08 18:08:47 +01:00
tst_qimage.cpp Ensure QImage::pixel() on RGB32 images returns valid QRgb values 2014-01-29 19:41:57 +01:00