[try 6][Gdiplus 01/10] Implement GdipGetRegionData
adam at tpetaccia.com
Wed Jul 30 17:15:32 CDT 2008
Use DWORD as the base type in write_element to avoid some casts
Use another helper function to write pathtypes, and avoid an overzealous ZeroMemory
Don't hardcode 4 when we mean sizeof(DWORD) or even something else.
Add documentation, as MSDN isn't helpful on this at all.
region->node is no longer a pointer
Apply const qualifier to helper function
We might not write a whole DWORD for pathflags, so make sure its not
garbage; revealed by the added test at the end of this series.
dlls/gdiplus/region.c | 162 ++++++++++++++++++++++++++++++++++++++++++-
dlls/gdiplus/tests/region.c | 39 ++++++-----
2 files changed, 181 insertions(+), 20 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 11097 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080730/504e515f/attachment-0001.bin
More information about the wine-patches