]> git.saurik.com Git - wxWidgets.git/commit
Add bitmaps in non-premultiplied format to wxImageList in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 30 Oct 2010 23:50:55 +0000 (23:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 30 Oct 2010 23:50:55 +0000 (23:50 +0000)
commit5c96c8649e6edeccbcd6aa40fdfa4da2e6ab5b59
treeb9159735c5aa6f2cfdd223bb700eede9c4badec2
parentfd90675b89c7f0b8fb9c6749f8314a26e23b1b95
Add bitmaps in non-premultiplied format to wxImageList in wxMSW.

ImageList_Draw() applies pre-multiplication to the bitmap itself (as can be
seen by experimenting with this or reading WINE sources for it) and so the
image list must store bitmaps with data in non-pre-multiplied format to avoid
doing it twice.

Do it by converting wxBitmaps passed to wxImageList::Add() and Replace() to
wxImage and then to non-pre-multiplied DIBs. This is obviously very
inefficient but at least results in correct appearance of images drawn by
wxImageList so it's a step forward.

Closes #9050.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/imaglist.cpp