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
4cddd5ff
Commit
4cddd5ff
authored
Sep 08, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36: Avoid using fminf/fmaxf.
parent
6d1ec351
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mesh.c
dlls/d3dx9_36/mesh.c
+4
-4
No files found.
dlls/d3dx9_36/mesh.c
View file @
4cddd5ff
...
...
@@ -2548,10 +2548,10 @@ static HRESULT parse_vertex_colors(IDirectXFileData *filedata, struct mesh_data
}
memcpy
(
&
color
,
data
,
sizeof
(
color
));
data
+=
sizeof
(
color
);
color
.
r
=
fminf
(
1
.
0
f
,
fmaxf
(
0
.
0
f
,
color
.
r
));
color
.
g
=
fminf
(
1
.
0
f
,
fmaxf
(
0
.
0
f
,
color
.
g
));
color
.
b
=
fminf
(
1
.
0
f
,
fmaxf
(
0
.
0
f
,
color
.
b
));
color
.
a
=
fminf
(
1
.
0
f
,
fmaxf
(
0
.
0
f
,
color
.
a
));
color
.
r
=
min
(
1
.
0
f
,
max
(
0
.
0
f
,
color
.
r
));
color
.
g
=
min
(
1
.
0
f
,
max
(
0
.
0
f
,
color
.
g
));
color
.
b
=
min
(
1
.
0
f
,
max
(
0
.
0
f
,
color
.
b
));
color
.
a
=
min
(
1
.
0
f
,
max
(
0
.
0
f
,
color
.
a
));
mesh
->
vertex_colors
[
index
]
=
D3DCOLOR_ARGB
((
BYTE
)(
color
.
a
*
255
.
0
f
+
0
.
5
f
),
(
BYTE
)(
color
.
r
*
255
.
0
f
+
0
.
5
f
),
(
BYTE
)(
color
.
g
*
255
.
0
f
+
0
.
5
f
),
...
...
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