Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
dccbd6a9
Commit
dccbd6a9
authored
Aug 09, 2019
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Remove useless casts to self.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0ae10108
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
path.c
dlls/gdi32/path.c
+4
-4
No files found.
dlls/gdi32/path.c
View file @
dccbd6a9
...
...
@@ -461,8 +461,8 @@ static struct gdi_path *PATH_FlattenPath(const struct gdi_path *pPath)
static
void
PATH_ScaleNormalizedPoint
(
FLOAT_POINT
corners
[],
double
x
,
double
y
,
POINT
*
pPoint
)
{
pPoint
->
x
=
GDI_ROUND
(
(
double
)
corners
[
0
].
x
+
(
double
)
(
corners
[
1
].
x
-
corners
[
0
].
x
)
*
0
.
5
*
(
x
+
1
.
0
)
);
pPoint
->
y
=
GDI_ROUND
(
(
double
)
corners
[
0
].
y
+
(
double
)
(
corners
[
1
].
y
-
corners
[
0
].
y
)
*
0
.
5
*
(
y
+
1
.
0
)
);
pPoint
->
x
=
GDI_ROUND
(
corners
[
0
].
x
+
(
corners
[
1
].
x
-
corners
[
0
].
x
)
*
0
.
5
*
(
x
+
1
.
0
)
);
pPoint
->
y
=
GDI_ROUND
(
corners
[
0
].
y
+
(
corners
[
1
].
y
-
corners
[
0
].
y
)
*
0
.
5
*
(
y
+
1
.
0
)
);
}
/* PATH_NormalizePoint
...
...
@@ -474,8 +474,8 @@ static void PATH_NormalizePoint(FLOAT_POINT corners[],
const
FLOAT_POINT
*
pPoint
,
double
*
pX
,
double
*
pY
)
{
*
pX
=
(
double
)(
pPoint
->
x
-
corners
[
0
].
x
)
/
(
double
)
(
corners
[
1
].
x
-
corners
[
0
].
x
)
*
2
.
0
-
1
.
0
;
*
pY
=
(
double
)(
pPoint
->
y
-
corners
[
0
].
y
)
/
(
double
)
(
corners
[
1
].
y
-
corners
[
0
].
y
)
*
2
.
0
-
1
.
0
;
*
pX
=
(
pPoint
->
x
-
corners
[
0
].
x
)
/
(
corners
[
1
].
x
-
corners
[
0
].
x
)
*
2
.
0
-
1
.
0
;
*
pY
=
(
pPoint
->
y
-
corners
[
0
].
y
)
/
(
corners
[
1
].
y
-
corners
[
0
].
y
)
*
2
.
0
-
1
.
0
;
}
/* PATH_DoArcPart
...
...
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