Commit 4a8a1b42 authored by Evan Stade's avatar Evan Stade Committed by Alexandre Julliard

gdiplus: Moved two inline helpers to the header.

parent 9c4a1289
......@@ -19,6 +19,7 @@
#ifndef __WINE_GP_PRIVATE_H_
#define __WINE_GP_PRIVATE_H_
#include <math.h>
#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;
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment