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
4a9fe7a8
Commit
4a9fe7a8
authored
Feb 20, 2019
by
Matteo Bruni
Committed by
Alexandre Julliard
Feb 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Simplify get_parameter_by_name().
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
eb0eaf70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
effect.c
dlls/d3dx9_36/effect.c
+3
-5
No files found.
dlls/d3dx9_36/effect.c
View file @
4a9fe7a8
...
...
@@ -918,7 +918,6 @@ struct d3dx_parameter *get_parameter_by_name(struct d3dx9_base_effect *base,
return
NULL
;
}
/* Pass / technique annotations are not in the parameters tree. */
if
(
parameter
->
full_name
)
{
name_len
=
strlen
(
name
);
...
...
@@ -948,9 +947,11 @@ struct d3dx_parameter *get_parameter_by_name(struct d3dx9_base_effect *base,
return
NULL
;
}
/* Pass / technique annotations are not stored in the parameters tree,
* do a linear search. */
count
=
parameter
->
member_count
;
length
=
strcspn
(
name
,
"[.
@
"
);
length
=
strcspn
(
name
,
"[."
);
part
=
name
+
length
;
for
(
i
=
0
;
i
<
count
;
i
++
)
...
...
@@ -969,9 +970,6 @@ struct d3dx_parameter *get_parameter_by_name(struct d3dx9_base_effect *base,
case
'.'
:
return
get_parameter_by_name
(
base
,
temp_parameter
,
part
);
case
'@'
:
return
NULL
;
case
'['
:
return
get_parameter_element_by_name
(
base
,
temp_parameter
,
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