Andrew Talbot : gdiplus: Remove unneeded casts.
Module: wine Branch: master Commit: 507daae427b408cf335a79a86b22e12d6fb643dd URL: http://source.winehq.org/git/wine.git/?a=commit;h=507daae427b408cf335a79a86b... Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Mon Jan 7 22:13:19 2008 +0000 gdiplus: Remove unneeded casts. --- dlls/gdiplus/gdiplus.c | 7 +++---- dlls/gdiplus/graphicspath.c | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/dlls/gdiplus/gdiplus.c b/dlls/gdiplus/gdiplus.c index e8499c6..fb38497 100644 --- a/dlls/gdiplus/gdiplus.c +++ b/dlls/gdiplus/gdiplus.c @@ -235,10 +235,9 @@ COLORREF ARGB2COLORREF(ARGB color) ARGB: aarrggbb FIXME:doesn't handle alpha channel */ - return (COLORREF) - ((color & 0x0000ff) << 16) + - (color & 0x00ff00) + - ((color & 0xff0000) >> 16); + return ((color & 0x0000ff) << 16) + + (color & 0x00ff00) + + ((color & 0xff0000) >> 16); } /* Like atan2, but puts angle in correct quadrant if dx is 0. */ diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c index ed71400..2a2d96c 100644 --- a/dlls/gdiplus/graphicspath.c +++ b/dlls/gdiplus/graphicspath.c @@ -570,6 +570,6 @@ GpStatus WINGDIPAPI GdipTransformPath(GpPath *path, GpMatrix *matrix) if(path->pathdata.Count == 0) return Ok; - return GdipTransformMatrixPoints(matrix, (GpPointF*) path->pathdata.Points, + return GdipTransformMatrixPoints(matrix, path->pathdata.Points, path->pathdata.Count); }
participants (1)
-
Alexandre Julliard