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
5038a7d9
Commit
5038a7d9
authored
Feb 13, 2013
by
Nozomi Kodama
Committed by
Alexandre Julliard
Feb 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Use const instead of CONST.
parent
88b9ae1e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
math.c
dlls/d3dx9_36/math.c
+0
-0
math.c
dlls/d3dx9_36/tests/math.c
+4
-4
d3dx9math.h
include/d3dx9math.h
+0
-0
No files found.
dlls/d3dx9_36/math.c
View file @
5038a7d9
This diff is collapsed.
Click to expand it.
dlls/d3dx9_36/tests/math.c
View file @
5038a7d9
...
...
@@ -2285,7 +2285,7 @@ static void test_D3DXVec_Array(void)
exp_vec
[
3
].
x
=
1051
.
778931
f
;
exp_vec
[
3
].
y
=
376
.
462250
f
;
exp_vec
[
3
].
z
=
0
.
156329
f
;
exp_vec
[
4
].
x
=
1037
.
348877
f
;
exp_vec
[
4
].
y
=
606
.
827393
f
;
exp_vec
[
4
].
z
=
0
.
133813
f
;
exp_vec
[
5
].
x
=
1025
.
023560
f
;
exp_vec
[
5
].
y
=
803
.
591248
f
;
exp_vec
[
5
].
z
=
0
.
114581
f
;
D3DXVec3ProjectArray
((
D3DXVECTOR3
*
)(
out_vec
+
1
),
sizeof
(
D3DXVECTOR4
),
(
CONST
D3DXVECTOR3
*
)
inp_vec
,
sizeof
(
D3DXVECTOR4
),
&
viewport
,
&
projection
,
&
view
,
&
world
,
ARRAY_SIZE
);
D3DXVec3ProjectArray
((
D3DXVECTOR3
*
)(
out_vec
+
1
),
sizeof
(
D3DXVECTOR4
),
(
const
D3DXVECTOR3
*
)
inp_vec
,
sizeof
(
D3DXVECTOR4
),
&
viewport
,
&
projection
,
&
view
,
&
world
,
ARRAY_SIZE
);
compare_vectors
(
exp_vec
,
out_vec
);
/* D3DXVec3UnprojectArray */
...
...
@@ -2294,7 +2294,7 @@ static void test_D3DXVec_Array(void)
exp_vec
[
3
].
x
=
-
2
.
922839
f
;
exp_vec
[
3
].
y
=
1
.
596689
f
;
exp_vec
[
3
].
z
=
0
.
380609
f
;
exp_vec
[
4
].
x
=
-
2
.
456225
f
;
exp_vec
[
4
].
y
=
1
.
359290
f
;
exp_vec
[
4
].
z
=
0
.
345632
f
;
exp_vec
[
5
].
x
=
-
2
.
167897
f
;
exp_vec
[
5
].
y
=
1
.
212597
f
;
exp_vec
[
5
].
z
=
0
.
324019
f
;
D3DXVec3UnprojectArray
((
D3DXVECTOR3
*
)(
out_vec
+
1
),
sizeof
(
D3DXVECTOR4
),
(
CONST
D3DXVECTOR3
*
)
inp_vec
,
sizeof
(
D3DXVECTOR4
),
&
viewport
,
&
projection
,
&
view
,
&
world
,
ARRAY_SIZE
);
D3DXVec3UnprojectArray
((
D3DXVECTOR3
*
)(
out_vec
+
1
),
sizeof
(
D3DXVECTOR4
),
(
const
D3DXVECTOR3
*
)
inp_vec
,
sizeof
(
D3DXVECTOR4
),
&
viewport
,
&
projection
,
&
view
,
&
world
,
ARRAY_SIZE
);
compare_vectors
(
exp_vec
,
out_vec
);
/* D3DXVec2TransformArray */
...
...
@@ -2462,7 +2462,7 @@ static void test_D3DXSHDot(void)
{
unsigned
int
i
;
FLOAT
a
[
49
],
b
[
49
],
got
;
CONST
FLOAT
expected
[]
=
const
FLOAT
expected
[]
=
{
0
.
5
f
,
0
.
5
f
,
25
.
0
f
,
262
.
5
f
,
1428
.
0
f
,
5362
.
0
f
,
15873
.
0
f
,
39812
.
0
f
,
};
for
(
i
=
0
;
i
<
49
;
i
++
)
...
...
@@ -2486,7 +2486,7 @@ static void test_D3DXSHEvalDirection(void)
unsigned
int
i
,
order
;
D3DXVECTOR3
d
;
FLOAT
a
[
49
],
expected
[
49
],
*
received_ptr
;
CONST
FLOAT
table
[
36
]
=
const
FLOAT
table
[
36
]
=
{
0
.
282095
f
,
-
0
.
977205
f
,
1
.
465808
f
,
-
0
.
488603
f
,
2
.
185097
f
,
-
6
.
555291
f
,
8
.
200181
f
,
-
3
.
277646
f
,
-
1
.
638823
f
,
1
.
180087
f
,
17
.
343668
f
,
-
40
.
220032
f
,
47
.
02021
8
f
,
-
20
.
110016
f
,
-
13
.
007751
f
,
6
.
490479
f
,
-
15
.
02005
8
f
,
10
.
620785
f
,
...
...
include/d3dx9math.h
View file @
5038a7d9
This diff is collapsed.
Click to expand it.
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