gdiplus: Use the gdiplus type, REAL, rather than FLOAT.
This commit is contained in:
parent
c3b2258eee
commit
d76b19abd9
|
@ -218,7 +218,7 @@ COLORREF ARGB2COLORREF(ARGB color)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Like atan2, but puts angle in correct quadrant if dx is 0. */
|
/* Like atan2, but puts angle in correct quadrant if dx is 0. */
|
||||||
FLOAT gdiplus_atan2(FLOAT dy, FLOAT dx)
|
REAL gdiplus_atan2(REAL dy, REAL dx)
|
||||||
{
|
{
|
||||||
if((dx == 0.0) && (dy != 0.0))
|
if((dx == 0.0) && (dy != 0.0))
|
||||||
return dy > 0.0 ? M_PI_2 : -M_PI_2;
|
return dy > 0.0 ? M_PI_2 : -M_PI_2;
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
COLORREF ARGB2COLORREF(ARGB color);
|
COLORREF ARGB2COLORREF(ARGB color);
|
||||||
extern INT arc2polybezier(GpPointF * points, REAL x1, REAL y1, REAL x2, REAL y2,
|
extern INT arc2polybezier(GpPointF * points, REAL x1, REAL y1, REAL x2, REAL y2,
|
||||||
REAL startAngle, REAL sweepAngle);
|
REAL startAngle, REAL sweepAngle);
|
||||||
extern FLOAT gdiplus_atan2(FLOAT dy, FLOAT dx);
|
extern REAL gdiplus_atan2(REAL dy, REAL dx);
|
||||||
|
|
||||||
static inline INT roundr(REAL x)
|
static inline INT roundr(REAL x)
|
||||||
{
|
{
|
||||||
|
|
|
@ -84,7 +84,7 @@ GpStatus WINGDIPAPI GdipClonePen(GpPen *pen, GpPen **clonepen)
|
||||||
return Ok;
|
return Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipCreatePen1(ARGB color, FLOAT width, GpUnit unit,
|
GpStatus WINGDIPAPI GdipCreatePen1(ARGB color, REAL width, GpUnit unit,
|
||||||
GpPen **pen)
|
GpPen **pen)
|
||||||
{
|
{
|
||||||
GpPen *gp_pen;
|
GpPen *gp_pen;
|
||||||
|
|
Loading…
Reference in New Issue