GetDIBits(): Handle Bitfields properly
Michael Kaufmann
hallo at michael-kaufmann.ch
Sat Apr 14 17:55:16 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,
and planes must be valid if biBitCount != 0)
- Add a new test.
---
dlls/gdi32/dib.c | 72 ++++++++++++++++++++++++++++++++---------
dlls/gdi32/tests/bitmap.c | 80
+++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 136 insertions(+), 16 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bfb7b865c9bbb4ba7f6918b5bb445c7fc81eba0f.diff
Type: text/x-patch
Size: 10467 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070415/b9b6b3af/bfb7b865c9bbb4ba7f6918b5bb445c7fc81eba0f.bin
More information about the wine-patches
mailing list