diff options
| author | Allan Sandfeld Jensen <[email protected]> | 2014-01-29 10:54:50 +0100 |
|---|---|---|
| committer | The Qt Project <[email protected]> | 2014-01-29 19:41:57 +0100 |
| commit | ff70c39ebcc63cf77a457b2af662e6f7de09e6c5 (patch) | |
| tree | 59da180ec30f25761f572639911955e023400278 /src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp | |
| parent | 0226795cf33363a872c777034e0d8934ffaa3819 (diff) | |
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 <[email protected]>
Diffstat (limited to 'src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp')
0 files changed, 0 insertions, 0 deletions
