Commit 26cb8431 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

gdiplus: Move some TRACE() higher in region.c.

parent 532a50df
...@@ -350,11 +350,11 @@ GpStatus WINGDIPAPI GdipCombineRegionRegion(GpRegion *region1, ...@@ -350,11 +350,11 @@ GpStatus WINGDIPAPI GdipCombineRegionRegion(GpRegion *region1,
GpStatus WINGDIPAPI GdipCreateRegion(GpRegion **region) GpStatus WINGDIPAPI GdipCreateRegion(GpRegion **region)
{ {
TRACE("%p\n", region);
if(!region) if(!region)
return InvalidParameter; return InvalidParameter;
TRACE("%p\n", region);
*region = GdipAlloc(sizeof(GpRegion)); *region = GdipAlloc(sizeof(GpRegion));
if(!*region) if(!*region)
return OutOfMemory; return OutOfMemory;
...@@ -692,10 +692,11 @@ GpStatus WINGDIPAPI GdipGetRegionData(GpRegion *region, BYTE *buffer, UINT size, ...@@ -692,10 +692,11 @@ GpStatus WINGDIPAPI GdipGetRegionData(GpRegion *region, BYTE *buffer, UINT size,
{ {
INT filled = 0; INT filled = 0;
TRACE("%p, %p, %d, %p\n", region, buffer, size, needed);
if (!(region && buffer && size)) if (!(region && buffer && size))
return InvalidParameter; return InvalidParameter;
TRACE("%p, %p, %d, %p\n", region, buffer, size, needed);
memcpy(buffer, &region->header, sizeof(region->header)); memcpy(buffer, &region->header, sizeof(region->header));
filled += sizeof(region->header) / sizeof(DWORD); filled += sizeof(region->header) / sizeof(DWORD);
/* With few exceptions, everything written is DWORD aligned, /* With few exceptions, everything written is DWORD aligned,
...@@ -710,11 +711,11 @@ GpStatus WINGDIPAPI GdipGetRegionData(GpRegion *region, BYTE *buffer, UINT size, ...@@ -710,11 +711,11 @@ GpStatus WINGDIPAPI GdipGetRegionData(GpRegion *region, BYTE *buffer, UINT size,
GpStatus WINGDIPAPI GdipGetRegionDataSize(GpRegion *region, UINT *needed) GpStatus WINGDIPAPI GdipGetRegionDataSize(GpRegion *region, UINT *needed)
{ {
TRACE("%p, %p\n", region, needed);
if (!(region && needed)) if (!(region && needed))
return InvalidParameter; return InvalidParameter;
TRACE("%p, %p\n", region, needed);
/* header.size doesn't count header.size and header.checksum */ /* header.size doesn't count header.size and header.checksum */
*needed = region->header.size + sizeof(DWORD) * 2; *needed = region->header.size + sizeof(DWORD) * 2;
...@@ -779,11 +780,11 @@ GpStatus WINGDIPAPI GdipSetInfinite(GpRegion *region) ...@@ -779,11 +780,11 @@ GpStatus WINGDIPAPI GdipSetInfinite(GpRegion *region)
{ {
GpStatus stat; GpStatus stat;
TRACE("%p\n", region);
if (!region) if (!region)
return InvalidParameter; return InvalidParameter;
TRACE("%p\n", region);
delete_element(&region->node); delete_element(&region->node);
stat = init_region(region, RegionDataInfiniteRect); stat = init_region(region, RegionDataInfiniteRect);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment