GetDIBits(): Handle Bitfields properly [try 2]
Michael Kaufmann
hallo at michael-kaufmann.ch
Mon Apr 16 15:06:45 CDT 2007
Changelog:
GetDIBits():
- Don't set the bitfields if biBitCount == 0 (this was a memory
corruption bug)
- Support the BI_BITFIELDS compression mode by setting bitfield masks
that use the same bits as the BI_RGB compression mode (Windows does this
too on my system)
- Check the input values in the BITMAPINFO structure (width, height,
planes, and compression mode must be valid if biBitCount != 0)
- 15 is no valid bit count for GetDIBits()
- Add new tests
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fc5b6ca81be62829cafa63e2f8f2b626022413e7.diff
Type: text/x-patch
Size: 16619 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070416/1027ab5b/fc5b6ca81be62829cafa63e2f8f2b626022413e7-0001.bin
More information about the wine-patches
mailing list