Module: wine Branch: master Commit: 6544d9ee3e149234991406f188b357dd0d9d253b URL: http://source.winehq.org/git/wine.git/?a=commit;h=6544d9ee3e149234991406f188...
Author: Evan Stade estade@gmail.com Date: Tue Jul 10 18:39:34 2007 -0700
gdiplus: Changed calls to floor to floorf.
---
dlls/gdiplus/graphics.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 3a88295..af1089a 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -208,8 +208,8 @@ static void draw_cap(HDC hdc, COLORREF color, GpLineCap cap, REAL size,
/* Using roundr here can make the triangle float off the end of the * line. */ - pt[0].x = ((x2 - x1) >= 0 ? floor(x2 - dx) : ceil(x2 - dx)); - pt[0].y = ((y2 - y1) >= 0 ? floor(y2 - dy) : ceil(y2 - dy)); + pt[0].x = ((x2 - x1) >= 0 ? floorf(x2 - dx) : ceilf(x2 - dx)); + pt[0].y = ((y2 - y1) >= 0 ? floorf(y2 - dy) : ceilf(y2 - dy)); pt[1].x = roundr(pt[0].x + 2.0 * dx); pt[1].y = roundr(pt[0].y + 2.0 * dy);
@@ -226,8 +226,8 @@ static void draw_cap(HDC hdc, COLORREF color, GpLineCap cap, REAL size, dx = -cos(M_PI_2 + theta) * size * invert; dy = -sin(M_PI_2 + theta) * size * invert;
- pt[0].x = ((x2 - x1) >= 0 ? floor(x2 - dx) : ceil(x2 - dx)); - pt[0].y = ((y2 - y1) >= 0 ? floor(y2 - dy) : ceil(y2 - dy)); + pt[0].x = ((x2 - x1) >= 0 ? floorf(x2 - dx) : ceilf(x2 - dx)); + pt[0].y = ((y2 - y1) >= 0 ? floorf(y2 - dy) : ceilf(y2 - dy)); pt[1].x = roundr(pt[0].x + 2.0 * dx); pt[1].y = roundr(pt[0].y + 2.0 * dy);