]> git.saurik.com Git - wxWidgets.git/commit
Fix conversion of bitmaps with alpha to icons/cursors in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 30 Oct 2010 23:51:04 +0000 (23:51 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 30 Oct 2010 23:51:04 +0000 (23:51 +0000)
commit2e7a64e9e6043d934a117a32d781e01fb907a01e
tree7e39c00d03fb56ed44ec5f9f0b732a553d3fe61c
parent5c96c8649e6edeccbcd6aa40fdfa4da2e6ab5b59
Fix conversion of bitmaps with alpha to icons/cursors in wxMSW.

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

This is similar to the change to wxImageList in the previous commit, see #9050.

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