]> git.saurik.com Git - wxWidgets.git/commit
Allow creating DIBs storing pixels in non-premultiplied format in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 30 Oct 2010 23:50:50 +0000 (23:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 30 Oct 2010 23:50:50 +0000 (23:50 +0000)
commitfd90675b89c7f0b8fb9c6749f8314a26e23b1b95
tree1dcd8caf5b2ad83dae281853dfbba679c8dd0357
parenta72ebcd0917c35e860e5c6c4cc528fefa6fa9cdd
Allow creating DIBs storing pixels in non-premultiplied format in wxMSW.

wxDIB assumed that MSW always uses bitmaps in pre-multiplied pixel format but
this turns out to be wrong: some Windows functions such as ImageList_Draw()
or CreateIconIndirect() apply pre-multiplication internally and so must be
given data in non-pre-multiplied format on input.

This commit adds a possibility to create wxDIB in such format but doesn't use
it anywhere yet, this will be done in subsequent commits.

See #9050.

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