[try 6][Gdiplus 01/10] Implement GdipGetRegionData
Adam Petaccia
adam at tpetaccia.com
Wed Jul 30 17:15:32 CDT 2008
Changelog:
(try6):
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.
(try4):
region->node is no longer a pointer
Apply const qualifier to helper function
(try2):
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...
Name: dfacfce42c003bc0e875d2b8ed14d4af6e0d268f.diff
Type: text/x-patch
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
mailing list