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
628b5aeb
Commit
628b5aeb
authored
Nov 02, 2008
by
Francois Gouget
Committed by
Alexandre Julliard
Nov 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx8/tests: Fix compilation on systems that don't support nameless unions.
parent
a6d5f7df
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
math.c
dlls/d3dx8/tests/math.c
+9
-9
No files found.
dlls/d3dx8/tests/math.c
View file @
628b5aeb
...
...
@@ -33,7 +33,7 @@ static inline BOOL compare_matrix(const D3DXMATRIX *m1, const D3DXMATRIX *m2)
{
for
(
j
=
0
;
j
<
4
;
++
j
)
{
if
(
fabs
(
U
(
m1
)
->
m
[
i
][
j
]
-
U
(
m2
)
->
m
[
i
][
j
])
>
admitted_error
)
if
(
fabs
(
U
(
*
m1
).
m
[
i
][
j
]
-
U
(
*
m2
).
m
[
i
][
j
])
>
admitted_error
)
return
FALSE
;
}
}
...
...
@@ -47,14 +47,14 @@ do { \
const D3DXMATRIX *__m2 = (gotmat); \
ok(compare_matrix(__m1, __m2), "Expected matrix=\n(%f,%f,%f,%f\n %f,%f,%f,%f\n %f,%f,%f,%f\n %f,%f,%f,%f\n)\n\n" \
"Got matrix=\n(%f,%f,%f,%f\n %f,%f,%f,%f\n %f,%f,%f,%f\n %f,%f,%f,%f)\n", \
U(
__m1)->m[0][0], U(__m1)->m[0][1], U(__m1)->m[0][2], U(__m1)->
m[0][3], \
U(
__m1)->m[1][0], U(__m1)->m[1][1], U(__m1)->m[1][2], U(__m1)->
m[1][3], \
U(
__m1)->m[2][0], U(__m1)->m[2][1], U(__m1)->m[2][2], U(__m1)->
m[2][3], \
U(
__m1)->m[3][0], U(__m1)->m[3][1], U(__m1)->m[3][2], U(__m1)->
m[3][3], \
U(
__m2)->m[0][0], U(__m2)->m[0][1], U(__m2)->m[0][2], U(__m2)->
m[0][3], \
U(
__m2)->m[1][0], U(__m2)->m[1][1], U(__m2)->m[1][2], U(__m2)->
m[1][3], \
U(
__m2)->m[2][0], U(__m2)->m[2][1], U(__m2)->m[2][2], U(__m2)->
m[2][3], \
U(
__m2)->m[3][0], U(__m2)->m[3][1], U(__m2)->m[3][2], U(__m2)->
m[3][3]); \
U(
*__m1).m[0][0], U(*__m1).m[0][1], U(*__m1).m[0][2], U(*__m1).
m[0][3], \
U(
*__m1).m[1][0], U(*__m1).m[1][1], U(*__m1).m[1][2], U(*__m1).
m[1][3], \
U(
*__m1).m[2][0], U(*__m1).m[2][1], U(*__m1).m[2][2], U(*__m1).
m[2][3], \
U(
*__m1).m[3][0], U(*__m1).m[3][1], U(*__m1).m[3][2], U(*__m1).
m[3][3], \
U(
*__m2).m[0][0], U(*__m2).m[0][1], U(*__m2).m[0][2], U(*__m2).
m[0][3], \
U(
*__m2).m[1][0], U(*__m2).m[1][1], U(*__m2).m[1][2], U(*__m2).
m[1][3], \
U(
*__m2).m[2][0], U(*__m2).m[2][1], U(*__m2).m[2][2], U(*__m2).
m[2][3], \
U(
*__m2).m[3][0], U(*__m2).m[3][1], U(*__m2).m[3][2], U(*__m2).
m[3][3]); \
} while(0)
#define expect_plane(expectedplane,gotplane) ok((fabs(expectedplane.a-gotplane.a)<admitted_error)&&(fabs(expectedplane.b-gotplane.b)<admitted_error)&&(fabs(expectedplane.c-gotplane.c)<admitted_error)&&(fabs(expectedplane.d-gotplane.d)<admitted_error),"Expected Plane= (%f, %f, %f, %f)\n , Got Plane= (%f, %f, %f, %f)\n", expectedplane.a, expectedplane.b, expectedplane.c, expectedplane.d, gotplane.a, gotplane.b, gotplane.c, gotplane.d);
...
...
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