Francois Gouget : gdiplus: Use the gdiplus type, REAL, rather than FLOAT.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Aug 3 08:04:43 CDT 2007


Module: wine
Branch: master
Commit: d76b19abd994e200872e7e70d0791b56ce3a9ab7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d76b19abd994e200872e7e70d0791b56ce3a9ab7

Author: Francois Gouget <fgouget at free.fr>
Date:   Fri Aug  3 00:53:23 2007 +0200

gdiplus: Use the gdiplus type, REAL, rather than FLOAT.

---

 dlls/gdiplus/gdiplus.c         |    2 +-
 dlls/gdiplus/gdiplus_private.h |    2 +-
 dlls/gdiplus/pen.c             |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/gdiplus/gdiplus.c b/dlls/gdiplus/gdiplus.c
index edbfb1c..9267b90 100644
--- a/dlls/gdiplus/gdiplus.c
+++ b/dlls/gdiplus/gdiplus.c
@@ -218,7 +218,7 @@ COLORREF ARGB2COLORREF(ARGB color)
 }
 
 /* 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))
         return dy > 0.0 ? M_PI_2 : -M_PI_2;
diff --git a/dlls/gdiplus/gdiplus_private.h b/dlls/gdiplus/gdiplus_private.h
index 3ce92a1..ee120d9 100644
--- a/dlls/gdiplus/gdiplus_private.h
+++ b/dlls/gdiplus/gdiplus_private.h
@@ -40,7 +40,7 @@
 COLORREF ARGB2COLORREF(ARGB color);
 extern INT arc2polybezier(GpPointF * points, REAL x1, REAL y1, REAL x2, REAL y2,
     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)
 {
diff --git a/dlls/gdiplus/pen.c b/dlls/gdiplus/pen.c
index 388567a..20a44bc 100644
--- a/dlls/gdiplus/pen.c
+++ b/dlls/gdiplus/pen.c
@@ -84,7 +84,7 @@ GpStatus WINGDIPAPI GdipClonePen(GpPen *pen, GpPen **clonepen)
     return Ok;
 }
 
-GpStatus WINGDIPAPI GdipCreatePen1(ARGB color, FLOAT width, GpUnit unit,
+GpStatus WINGDIPAPI GdipCreatePen1(ARGB color, REAL width, GpUnit unit,
     GpPen **pen)
 {
     GpPen *gp_pen;




More information about the wine-cvs mailing list