gdiplus: Add a trace to GdipDrawString.

This commit is contained in:
Vincent Povirk 2009-05-13 13:55:46 -05:00 committed by Alexandre Julliard
parent 82f22bbaee
commit 3dd5ce7874
3 changed files with 11 additions and 0 deletions

View File

@ -380,3 +380,9 @@ inline void delete_element(region_element* element)
break;
}
}
const char *debugstr_rectf(CONST RectF* rc)
{
if (!rc) return "(null)";
return wine_dbg_sprintf("(%0.2f,%0.2f,%0.2f,%0.2f)", rc->X, rc->Y, rc->Width, rc->Height);
}

View File

@ -69,6 +69,8 @@ static inline REAL deg2rad(REAL degrees)
return M_PI * degrees / 180.0;
}
extern const char *debugstr_rectf(CONST RectF* rc);
struct GpPen{
UINT style;
GpUnit unit;

View File

@ -2016,6 +2016,9 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string
SIZE size;
RECT drawcoord;
TRACE("(%p, %s, %i, %p, %s, %p, %p)\n", graphics, debugstr_wn(string, length),
length, font, debugstr_rectf(rect), format, brush);
if(!graphics || !string || !font || !brush || !rect)
return InvalidParameter;