gdiplus: Moved two inline helpers to the header.
This commit is contained in:
parent
9c4a128940
commit
4a8a1b423c
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue