diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-12-13 11:02:32 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2011-12-13 11:02:32 (GMT) |
commit | ee387dcb715ebc21f63b524bb87a8ffaf198f8aa (patch) | |
tree | 3adf6ac4929ef98e081f7d61b6897cba5171e933 /src/gui/image/qiconloader.cpp | |
parent | e394dd804fa6690f6d4bd270f61ca56331cea63b (diff) | |
download | Qt-ee387dcb715ebc21f63b524bb87a8ffaf198f8aa.zip Qt-ee387dcb715ebc21f63b524bb87a8ffaf198f8aa.tar.gz Qt-ee387dcb715ebc21f63b524bb87a8ffaf198f8aa.tar.bz2 |
[blitter] Work on tst_QPixmap::clear()
By default QPixmap may not hasAlphaChannel(), only if setMask()
or fill() with a transparent color is called a QPixmap will
hasAlphaChannel().
Make the QBlittablePlatformPixmap remember if there is an alpha
channel, pass this as parameter in createBlittable to make it
clear that this is required and not optional.
Update the DirectFB plugin to handle this parameter to create a
RGB32 or ARGB Surface depending on the alpha value, also only use
PreMultiplied alpha when using ARGB. Separate the two constructors
for the QDirectFbBlitter to either adopt a DirectFB Surface or to
create one.
Cherry-picked-from: qtbase:ab50b60f5cc237d5620f3ff3b2eb44c857f8f60b
Change-Id: I8abf82408ecd2d075fc6f241ace8be2a34ac56e7
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Merge-request: 1492
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/gui/image/qiconloader.cpp')
0 files changed, 0 insertions, 0 deletions