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;
|
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;
|
return M_PI * degrees / 180.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern const char *debugstr_rectf(CONST RectF* rc);
|
||||||
|
|
||||||
struct GpPen{
|
struct GpPen{
|
||||||
UINT style;
|
UINT style;
|
||||||
GpUnit unit;
|
GpUnit unit;
|
||||||
|
|
|
@ -2016,6 +2016,9 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string
|
||||||
SIZE size;
|
SIZE size;
|
||||||
RECT drawcoord;
|
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)
|
if(!graphics || !string || !font || !brush || !rect)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue