gdiplus: Add some traces for the values of point arguments.
This commit is contained in:
parent
d46eda2b29
commit
7ded3d83c6
|
@ -311,8 +311,8 @@ GpStatus WINGDIPAPI GdipCreateLineBrush(GDIPCONST GpPointF* startpoint,
|
||||||
{
|
{
|
||||||
COLORREF col = ARGB2COLORREF(startcolor);
|
COLORREF col = ARGB2COLORREF(startcolor);
|
||||||
|
|
||||||
TRACE("(%p, %p, %x, %x, %d, %p)\n", startpoint, endpoint,
|
TRACE("(%s, %s, %x, %x, %d, %p)\n", debugstr_pointf(startpoint),
|
||||||
startcolor, endcolor, wrap, line);
|
debugstr_pointf(endpoint), startcolor, endcolor, wrap, line);
|
||||||
|
|
||||||
if(!line || !startpoint || !endpoint || wrap == WrapModeClamp)
|
if(!line || !startpoint || !endpoint || wrap == WrapModeClamp)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
@ -1448,7 +1448,7 @@ GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient *grad,
|
||||||
GpStatus WINGDIPAPI GdipSetPathGradientCenterPoint(GpPathGradient *grad,
|
GpStatus WINGDIPAPI GdipSetPathGradientCenterPoint(GpPathGradient *grad,
|
||||||
GpPointF *point)
|
GpPointF *point)
|
||||||
{
|
{
|
||||||
TRACE("(%p, %p)\n", grad, point);
|
TRACE("(%p, %s)\n", grad, debugstr_pointf(point));
|
||||||
|
|
||||||
if(!grad || !point)
|
if(!grad || !point)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
|
@ -444,3 +444,9 @@ const char *debugstr_rectf(CONST RectF* rc)
|
||||||
if (!rc) return "(null)";
|
if (!rc) return "(null)";
|
||||||
return wine_dbg_sprintf("(%0.2f,%0.2f,%0.2f,%0.2f)", rc->X, rc->Y, rc->Width, rc->Height);
|
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);
|
||||||
|
}
|
||||||
|
|
|
@ -80,6 +80,8 @@ static inline REAL deg2rad(REAL degrees)
|
||||||
|
|
||||||
extern const char *debugstr_rectf(CONST RectF* rc);
|
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,
|
extern void convert_32bppARGB_to_32bppPARGB(UINT width, UINT height,
|
||||||
BYTE *dst_bits, INT dst_stride, const BYTE *src_bits, INT src_stride);
|
BYTE *dst_bits, INT dst_stride, const BYTE *src_bits, INT src_stride);
|
||||||
|
|
||||||
|
|
|
@ -1876,6 +1876,9 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image
|
||||||
if(!graphics || !image || !points || count != 3)
|
if(!graphics || !image || !points || count != 3)
|
||||||
return InvalidParameter;
|
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));
|
memcpy(ptf, points, 3 * sizeof(GpPointF));
|
||||||
transform_and_round_points(graphics, pti, ptf, 3);
|
transform_and_round_points(graphics, pti, ptf, 3);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue