Fix GIF image decoding: do not zero transparent pixels
authoraavit <eirik.aavitsland@digia.com>
Wed, 7 Nov 2012 14:19:20 +0000 (15:19 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 8 Nov 2012 10:35:04 +0000 (11:35 +0100)
commitc309d424f45dc0e7b62fbbbabf20dbfe355f48a7
treea5b0e6405652b4e2f2af98a9a90934c26ad91409
parent5ec6e2aca2950634d39195cc858bf062a2e2618d
Fix GIF image decoding: do not zero transparent pixels

For the special transparent color index, the decoder would skip
writing anything out (thus leaving the pixels at 0 rgba value).
Although correct for later frames, for the initial frame this would
loose the color information for such pixels (which one otherwise
could have made visible e.g. by converting then image to an
alpha-less image format).

Change-Id: I316cefce8f21797feedebfbf98296ad84eaa4b99
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
src/gui/image/qgifhandler.cpp
tests/auto/qimagereader/images/trans.gif [new file with mode: 0644]
tests/auto/qimagereader/tst_qimagereader.cpp