From 4a8a1b423c4d8984e61eae9efff7cbdf846b79f1 Mon Sep 17 00:00:00 2001 From: Evan Stade Date: Wed, 11 Jul 2007 18:06:44 -0700 Subject: [PATCH] gdiplus: Moved two inline helpers to the header. --- dlls/gdiplus/gdiplus_private.h | 11 +++++++++++ dlls/gdiplus/graphics.c | 10 ---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/dlls/gdiplus/gdiplus_private.h b/dlls/gdiplus/gdiplus_private.h index d0360570d71..5bcedd9ca3f 100644 --- a/dlls/gdiplus/gdiplus_private.h +++ b/dlls/gdiplus/gdiplus_private.h @@ -19,6 +19,7 @@ #ifndef __WINE_GP_PRIVATE_H_ #define __WINE_GP_PRIVATE_H_ +#include #include "windef.h" #include "gdiplus.h" @@ -26,6 +27,16 @@ COLORREF ARGB2COLORREF(ARGB color); +static inline INT roundr(REAL x) +{ + return (INT) floorf(x + 0.5); +} + +static inline REAL deg2rad(REAL degrees) +{ + return M_PI * degrees / 180.0; +} + struct GpPen{ UINT style; COLORREF color; diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index af1089a7214..c32a4126393 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -34,16 +34,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(gdiplus); #define ANCHOR_WIDTH (2.0) #define MAX_ITERS (50) -static inline INT roundr(REAL x) -{ - return (INT) floor(x+0.5); -} - -static inline REAL deg2rad(REAL degrees) -{ - return (M_PI*2.0) * degrees / 360.0; -} - /* Converts angle (in degrees) to x/y coordinates */ static void deg2xy(REAL angle, REAL x_0, REAL y_0, REAL *x, REAL *y) {