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
ae2c6a16
Commit
ae2c6a16
authored
May 13, 2011
by
Rico Schüller
Committed by
Alexandre Julliard
May 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Improve get_parameter_by_name().
parent
d797e5fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
15 deletions
+12
-15
effect.c
dlls/d3dx9_36/effect.c
+12
-15
No files found.
dlls/d3dx9_36/effect.c
View file @
ae2c6a16
...
...
@@ -112,8 +112,7 @@ struct ID3DXEffectCompilerImpl
static
struct
d3dx_parameter
*
get_parameter_by_name
(
struct
ID3DXBaseEffectImpl
*
base
,
struct
d3dx_parameter
*
parameter
,
LPCSTR
name
);
static
struct
d3dx_parameter
*
get_parameter_annotation_by_name
(
struct
ID3DXBaseEffectImpl
*
base
,
struct
d3dx_parameter
*
parameter
,
LPCSTR
name
);
static
struct
d3dx_parameter
*
get_parameter_annotation_by_name
(
struct
d3dx_parameter
*
parameter
,
LPCSTR
name
);
static
inline
void
read_dword
(
const
char
**
ptr
,
DWORD
*
d
)
{
...
...
@@ -527,14 +526,13 @@ static inline BOOL get_bool(void *data)
return
(
*
(
DWORD
*
)
data
)
?
TRUE
:
FALSE
;
}
static
struct
d3dx_parameter
*
get_parameter_element_by_name
(
struct
ID3DXBaseEffectImpl
*
base
,
struct
d3dx_parameter
*
parameter
,
LPCSTR
name
)
static
struct
d3dx_parameter
*
get_parameter_element_by_name
(
struct
d3dx_parameter
*
parameter
,
LPCSTR
name
)
{
UINT
element
;
struct
d3dx_parameter
*
temp_parameter
;
LPCSTR
part
;
TRACE
(
"
base %p, parameter %p, name %s
\n
"
,
base
,
parameter
,
debugstr_a
(
name
));
TRACE
(
"
parameter %p, name %s
\n
"
,
parameter
,
debugstr_a
(
name
));
if
(
!
name
||
!*
name
)
return
parameter
;
...
...
@@ -548,10 +546,10 @@ static struct d3dx_parameter *get_parameter_element_by_name(struct ID3DXBaseEffe
switch
(
*
part
++
)
{
case
'.'
:
return
get_parameter_by_name
(
base
,
temp_parameter
,
part
);
return
get_parameter_by_name
(
NULL
,
temp_parameter
,
part
);
case
'@'
:
return
get_parameter_annotation_by_name
(
base
,
temp_parameter
,
part
);
return
get_parameter_annotation_by_name
(
temp_parameter
,
part
);
case
'\0'
:
TRACE
(
"Returning parameter %p
\n
"
,
temp_parameter
);
...
...
@@ -567,14 +565,13 @@ static struct d3dx_parameter *get_parameter_element_by_name(struct ID3DXBaseEffe
return
NULL
;
}
static
struct
d3dx_parameter
*
get_parameter_annotation_by_name
(
struct
ID3DXBaseEffectImpl
*
base
,
struct
d3dx_parameter
*
parameter
,
LPCSTR
name
)
static
struct
d3dx_parameter
*
get_parameter_annotation_by_name
(
struct
d3dx_parameter
*
parameter
,
LPCSTR
name
)
{
UINT
i
,
length
;
struct
d3dx_parameter
*
temp_parameter
;
LPCSTR
part
;
TRACE
(
"
base %p, parameter %p, name %s
\n
"
,
base
,
parameter
,
debugstr_a
(
name
));
TRACE
(
"
parameter %p, name %s
\n
"
,
parameter
,
debugstr_a
(
name
));
if
(
!
name
||
!*
name
)
return
parameter
;
...
...
@@ -595,10 +592,10 @@ static struct d3dx_parameter *get_parameter_annotation_by_name(struct ID3DXBaseE
switch
(
*
part
++
)
{
case
'.'
:
return
get_parameter_by_name
(
base
,
temp_parameter
,
part
);
return
get_parameter_by_name
(
NULL
,
temp_parameter
,
part
);
case
'['
:
return
get_parameter_element_by_name
(
base
,
temp_parameter
,
part
);
return
get_parameter_element_by_name
(
temp_parameter
,
part
);
default:
FIXME
(
"Unhandled case
\"
%c
\"\n
"
,
*--
part
);
...
...
@@ -651,13 +648,13 @@ static struct d3dx_parameter *get_parameter_by_name(struct ID3DXBaseEffectImpl *
switch
(
*
part
++
)
{
case
'.'
:
return
get_parameter_by_name
(
base
,
temp_parameter
,
part
);
return
get_parameter_by_name
(
NULL
,
temp_parameter
,
part
);
case
'@'
:
return
get_parameter_annotation_by_name
(
base
,
temp_parameter
,
part
);
return
get_parameter_annotation_by_name
(
temp_parameter
,
part
);
case
'['
:
return
get_parameter_element_by_name
(
base
,
temp_parameter
,
part
);
return
get_parameter_element_by_name
(
temp_parameter
,
part
);
default:
FIXME
(
"Unhandled case
\"
%c
\"\n
"
,
*--
part
);
...
...
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