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
40fff317
Commit
40fff317
authored
Nov 23, 2008
by
Christian Costa
Committed by
Alexandre Julliard
Nov 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dxof: Finish support for multi-dimensional array.
parent
eaaced6c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
20 deletions
+16
-20
d3dxof.c
dlls/d3dxof/d3dxof.c
+15
-19
d3dxof_private.h
dlls/d3dxof/d3dxof_private.h
+1
-1
No files found.
dlls/d3dxof/d3dxof.c
View file @
40fff317
...
@@ -1100,6 +1100,11 @@ static BOOL parse_template_members_list(parse_buffer * buf)
...
@@ -1100,6 +1100,11 @@ static BOOL parse_template_members_list(parse_buffer * buf)
{
{
while
(
check_TOKEN
(
buf
)
==
TOKEN_OBRACKET
)
while
(
check_TOKEN
(
buf
)
==
TOKEN_OBRACKET
)
{
{
if
(
nb_dims
>=
MAX_ARRAY_DIM
)
{
FIXME
(
"Too many dimensions (%d) for multi-dimensional array
\n
"
,
nb_dims
+
1
);
return
FALSE
;
}
get_TOKEN
(
buf
);
get_TOKEN
(
buf
);
if
(
check_TOKEN
(
buf
)
==
TOKEN_INTEGER
)
if
(
check_TOKEN
(
buf
)
==
TOKEN_INTEGER
)
{
{
...
@@ -1842,29 +1847,20 @@ static BOOL parse_object_members_list(parse_buffer * buf)
...
@@ -1842,29 +1847,20 @@ static BOOL parse_object_members_list(parse_buffer * buf)
for
(
i
=
0
;
i
<
pt
->
nb_members
;
i
++
)
for
(
i
=
0
;
i
<
pt
->
nb_members
;
i
++
)
{
{
int
nb_elems
,
k
;
int
k
;
int
nb_elems
=
1
;
if
(
pt
->
members
[
i
].
nb_dims
>
1
)
buf
->
pxo
->
members
[
i
].
start
=
buf
->
cur_pdata
;
{
FIXME
(
"Arrays with dimension > 1 not yet supported
\n
"
);
for
(
k
=
0
;
k
<
pt
->
members
[
i
].
nb_dims
;
k
++
)
return
FALSE
;
}
else
if
(
pt
->
members
[
i
].
nb_dims
)
{
if
(
!
pt
->
members
[
i
].
dim_fixed
[
0
])
{
if
(
!
i
)
{
{
FIXME
(
"Array with variable must be preceded by the size
\n
"
);
if
(
pt
->
members
[
i
].
dim_fixed
[
k
])
return
FALSE
;
nb_elems
*=
pt
->
members
[
i
].
dim_value
[
k
];
}
nb_elems
=
last_dword
;
}
else
else
nb_elems
=
pt
->
members
[
i
].
dim_value
[
0
]
;
nb_elems
*=
*
(
DWORD
*
)
buf
->
pxo
->
members
[
pt
->
members
[
i
].
dim_value
[
k
]].
start
;
}
}
else
nb_elems
=
1
;
TRACE
(
"Elements to consider: %d
\n
"
,
nb_elems
)
;
for
(
k
=
0
;
k
<
nb_elems
;
k
++
)
for
(
k
=
0
;
k
<
nb_elems
;
k
++
)
{
{
...
...
dlls/d3dxof/d3dxof_private.h
View file @
40fff317
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#include "dxfile.h"
#include "dxfile.h"
#define MAX_NAME_LEN 32
#define MAX_NAME_LEN 32
#define MAX_ARRAY_DIM
1
#define MAX_ARRAY_DIM
4
#define MAX_MEMBERS 50
#define MAX_MEMBERS 50
#define MAX_CHILDS 20
#define MAX_CHILDS 20
#define MAX_TEMPLATES 200
#define MAX_TEMPLATES 200
...
...
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