Author: tkreuzer
Date: Sun May 17 13:44:34 2015
New Revision: 67809
URL:
http://svn.reactos.org/svn/reactos?rev=67809&view=rev
Log:
[GDIPLUS]
Add even more debugprints
Modified:
trunk/reactos/dll/win32/gdiplus/region.c
Modified: trunk/reactos/dll/win32/gdiplus/region.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdiplus/region.c…
==============================================================================
--- trunk/reactos/dll/win32/gdiplus/region.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdiplus/region.c [iso-8859-1] Sun May 17 13:44:34 2015
@@ -1098,12 +1098,16 @@
{
new_hdc = CreateCompatibleDC(0);
if (!new_hdc)
+ {
+ ERR("CreateCompatibleDC failed\n");
return OutOfMemory;
+ }
stat = GdipCreateFromHDC(new_hdc, &new_graphics);
graphics = new_graphics;
if (stat != Ok)
{
+ ERR("GdipCreateFromHDC failed: 0x%x\n", stat);
DeleteDC(new_hdc);
return stat;
}
@@ -1112,7 +1116,10 @@
{
graphics->hdc = new_hdc = CreateCompatibleDC(0);
if (!new_hdc)
+ {
+ ERR("CreateCompatibleDC failed\n");
return OutOfMemory;
+ }
}
save_state = SaveDC(graphics->hdc);
@@ -1125,7 +1132,15 @@
if (stat == Ok)
{
*hrgn = PathToRegion(graphics->hdc);
+ if (*hrgn == NULL)
+ {
+ ERR("PathToRegion failed\n");
+ }
stat = *hrgn ? Ok : OutOfMemory;
+ }
+ else
+ {
+ ERR("trace_path failed: 0x%x\n", stat);
}
RestoreDC(graphics->hdc, save_state);
@@ -1282,12 +1297,18 @@
*/
GpStatus WINGDIPAPI GdipGetRegionHRgn(GpRegion *region, GpGraphics *graphics, HRGN
*hrgn)
{
+ GpStatus status;
TRACE("(%p, %p, %p)\n", region, graphics, hrgn);
if (!region || !hrgn)
return InvalidParameter;
- return get_region_hrgn(®ion->node, graphics, hrgn);
+ status = get_region_hrgn(®ion->node, graphics, hrgn);
+ if (status != Ok)
+ {
+ ERR("get_region_hrgn() failed. region->node.type = 0x%x\n",
region->node.type);
+ }
+ return status;
}
GpStatus WINGDIPAPI GdipIsEmptyRegion(GpRegion *region, GpGraphics *graphics, BOOL *res)