gdiplus: Add a trace to GdipDrawString.
This commit is contained in:
parent
82f22bbaee
commit
3dd5ce7874
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue