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
3160ad76
Commit
3160ad76
authored
Oct 28, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
Oct 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Pass test as argument to print handler.
parent
abd76467
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
stateblock.c
dlls/d3d9/tests/stateblock.c
+11
-7
No files found.
dlls/d3d9/tests/stateblock.c
View file @
3160ad76
...
...
@@ -133,7 +133,7 @@ typedef struct state_test {
/* Test data handlers */
void
(
*
set_handler
)
(
IDirect3DDevice9
*
device
,
const
struct
state_test
*
test
,
const
void
*
data_in
);
void
(
*
get_handler
)
(
IDirect3DDevice9
*
device
,
const
struct
state_test
*
test
,
void
*
data_out
);
void
(
*
print_handler
)
(
const
void
*
data
);
void
(
*
print_handler
)
(
const
struct
state_test
*
test
,
const
void
*
data
);
/* Test arguments */
const
void
*
test_arg
;
...
...
@@ -205,9 +205,9 @@ static void execute_test_chain(
if
(
test
[
i
].
print_handler
)
{
trace
(
"Returned data was:
\n
"
);
test
[
i
].
print_handler
(
test
[
i
].
return_data
);
test
[
i
].
print_handler
(
&
test
[
i
],
test
[
i
].
return_data
);
trace
(
"Test data was:
\n
"
);
test
[
i
].
print_handler
(
test
[
i
].
test_data_out
);
test
[
i
].
print_handler
(
&
test
[
i
],
test
[
i
].
test_data_out
);
}
}
...
...
@@ -219,9 +219,9 @@ static void execute_test_chain(
if
(
test
[
i
].
print_handler
)
{
trace
(
"Returned data was:
\n
"
);
test
[
i
].
print_handler
(
test
[
i
].
return_data
);
test
[
i
].
print_handler
(
&
test
[
i
],
test
[
i
].
return_data
);
trace
(
"Default data was:
\n
"
);
test
[
i
].
print_handler
(
test
[
i
].
default_data
);
test
[
i
].
print_handler
(
&
test
[
i
],
test
[
i
].
default_data
);
}
}
...
...
@@ -233,9 +233,9 @@ static void execute_test_chain(
if
(
test
[
i
].
print_handler
)
{
trace
(
"Returned data was:
\n
"
);
test
[
i
].
print_handler
(
test
[
i
].
return_data
);
test
[
i
].
print_handler
(
&
test
[
i
],
test
[
i
].
return_data
);
trace
(
"Initial data was:
\n
"
);
test
[
i
].
print_handler
(
test
[
i
].
initial_data
);
test
[
i
].
print_handler
(
&
test
[
i
],
test
[
i
].
initial_data
);
}
}
}
...
...
@@ -492,6 +492,7 @@ typedef struct shader_constant_context {
}
shader_constant_context
;
static
void
shader_constant_print_handler
(
const
state_test
*
test
,
const
void
*
data
)
{
const
shader_constant_data
*
scdata
=
data
;
...
...
@@ -633,6 +634,7 @@ typedef struct light_context {
}
light_context
;
static
void
light_print_handler
(
const
state_test
*
test
,
const
void
*
data
)
{
const
light_data
*
ldata
=
data
;
...
...
@@ -794,6 +796,7 @@ static inline void print_matrix(
}
static
void
transform_print_handler
(
const
state_test
*
test
,
const
void
*
data
)
{
const
transform_data
*
tdata
=
data
;
...
...
@@ -1096,6 +1099,7 @@ static void render_state_get_handler(
}
static
void
render_state_print_handler
(
const
state_test
*
test
,
const
void
*
data
)
{
const
render_state_data
*
rsdata
=
data
;
...
...
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