Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4a8a1b42
Commit
4a8a1b42
authored
Jul 11, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jul 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Moved two inline helpers to the header.
parent
9c4a1289
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+11
-0
graphics.c
dlls/gdiplus/graphics.c
+0
-10
No files found.
dlls/gdiplus/gdiplus_private.h
View file @
4a8a1b42
...
...
@@ -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
;
...
...
dlls/gdiplus/graphics.c
View file @
4a8a1b42
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment