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
6544d9ee
Commit
6544d9ee
authored
Jul 10, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jul 11, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Changed calls to floor to floorf.
parent
0f6aaf86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
graphics.c
dlls/gdiplus/graphics.c
+4
-4
No files found.
dlls/gdiplus/graphics.c
View file @
6544d9ee
...
...
@@ -208,8 +208,8 @@ static void draw_cap(HDC hdc, COLORREF color, GpLineCap cap, REAL size,
/* Using roundr here can make the triangle float off the end of the
* line. */
pt
[
0
].
x
=
((
x2
-
x1
)
>=
0
?
floor
(
x2
-
dx
)
:
ceil
(
x2
-
dx
));
pt
[
0
].
y
=
((
y2
-
y1
)
>=
0
?
floor
(
y2
-
dy
)
:
ceil
(
y2
-
dy
));
pt
[
0
].
x
=
((
x2
-
x1
)
>=
0
?
floor
f
(
x2
-
dx
)
:
ceilf
(
x2
-
dx
));
pt
[
0
].
y
=
((
y2
-
y1
)
>=
0
?
floor
f
(
y2
-
dy
)
:
ceilf
(
y2
-
dy
));
pt
[
1
].
x
=
roundr
(
pt
[
0
].
x
+
2
.
0
*
dx
);
pt
[
1
].
y
=
roundr
(
pt
[
0
].
y
+
2
.
0
*
dy
);
...
...
@@ -226,8 +226,8 @@ static void draw_cap(HDC hdc, COLORREF color, GpLineCap cap, REAL size,
dx
=
-
cos
(
M_PI_2
+
theta
)
*
size
*
invert
;
dy
=
-
sin
(
M_PI_2
+
theta
)
*
size
*
invert
;
pt
[
0
].
x
=
((
x2
-
x1
)
>=
0
?
floor
(
x2
-
dx
)
:
ceil
(
x2
-
dx
));
pt
[
0
].
y
=
((
y2
-
y1
)
>=
0
?
floor
(
y2
-
dy
)
:
ceil
(
y2
-
dy
));
pt
[
0
].
x
=
((
x2
-
x1
)
>=
0
?
floor
f
(
x2
-
dx
)
:
ceilf
(
x2
-
dx
));
pt
[
0
].
y
=
((
y2
-
y1
)
>=
0
?
floor
f
(
y2
-
dy
)
:
ceilf
(
y2
-
dy
));
pt
[
1
].
x
=
roundr
(
pt
[
0
].
x
+
2
.
0
*
dx
);
pt
[
1
].
y
=
roundr
(
pt
[
0
].
y
+
2
.
0
*
dy
);
...
...
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