gdiplus: Add some traces for the values of point arguments.

This commit is contained in:
Vincent Povirk 2009-12-18 15:45:02 -06:00 committed by Alexandre Julliard
parent d46eda2b29
commit 7ded3d83c6
4 changed files with 14 additions and 3 deletions

View File

@ -311,8 +311,8 @@ GpStatus WINGDIPAPI GdipCreateLineBrush(GDIPCONST GpPointF* startpoint,
{
COLORREF col = ARGB2COLORREF(startcolor);
TRACE("(%p, %p, %x, %x, %d, %p)\n", startpoint, endpoint,
startcolor, endcolor, wrap, line);
TRACE("(%s, %s, %x, %x, %d, %p)\n", debugstr_pointf(startpoint),
debugstr_pointf(endpoint), startcolor, endcolor, wrap, line);
if(!line || !startpoint || !endpoint || wrap == WrapModeClamp)
return InvalidParameter;
@ -1448,7 +1448,7 @@ GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient *grad,
GpStatus WINGDIPAPI GdipSetPathGradientCenterPoint(GpPathGradient *grad,
GpPointF *point)
{
TRACE("(%p, %p)\n", grad, point);
TRACE("(%p, %s)\n", grad, debugstr_pointf(point));
if(!grad || !point)
return InvalidParameter;

View File

@ -444,3 +444,9 @@ 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);
}
const char *debugstr_pointf(CONST PointF* pt)
{
if (!pt) return "(null)";
return wine_dbg_sprintf("(%0.2f,%0.2f)", pt->X, pt->Y);
}

View File

@ -80,6 +80,8 @@ static inline REAL deg2rad(REAL degrees)
extern const char *debugstr_rectf(CONST RectF* rc);
extern const char *debugstr_pointf(CONST PointF* pt);
extern void convert_32bppARGB_to_32bppPARGB(UINT width, UINT height,
BYTE *dst_bits, INT dst_stride, const BYTE *src_bits, INT src_stride);

View File

@ -1876,6 +1876,9 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image
if(!graphics || !image || !points || count != 3)
return InvalidParameter;
TRACE("%s %s %s\n", debugstr_pointf(&points[0]), debugstr_pointf(&points[1]),
debugstr_pointf(&points[2]));
memcpy(ptf, points, 3 * sizeof(GpPointF));
transform_and_round_points(graphics, pti, ptf, 3);