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
71168d9d
Commit
71168d9d
authored
Oct 30, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Get rid of the Coords2d typedef.
parent
64a77884
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
meshbuilder.c
dlls/d3drm/meshbuilder.c
+7
-6
No files found.
dlls/d3drm/meshbuilder.c
View file @
71168d9d
...
...
@@ -56,10 +56,11 @@ struct d3drm_mesh
struct
mesh_group
*
groups
;
};
typedef
struct
{
struct
coords_2d
{
D3DVALUE
u
;
D3DVALUE
v
;
}
Coords2d
;
};
typedef
struct
{
D3DCOLOR
color
;
...
...
@@ -80,7 +81,7 @@ typedef struct {
DWORD
face_data_size
;
void
*
pFaceData
;
DWORD
nb_coords2d
;
Coords
2d
*
pCoords2d
;
struct
coords_
2d
*
pCoords2d
;
D3DCOLOR
color
;
IDirect3DRMMaterial2
*
material
;
IDirect3DRMTexture3
*
texture
;
...
...
@@ -1210,8 +1211,8 @@ HRESULT load_mesh_data(IDirect3DRMMeshBuilder3 *iface, IDirectXFileData *pData,
TRACE
(
"MeshTextureCoords: nb_coords2d = %d
\n
"
,
This
->
nb_coords2d
);
This
->
pCoords2d
=
HeapAlloc
(
GetProcessHeap
(),
0
,
This
->
nb_coords2d
*
sizeof
(
Coords2d
));
memcpy
(
This
->
pCoords2d
,
ptr
+
sizeof
(
DWORD
),
This
->
nb_coords2d
*
sizeof
(
Coords2d
));
This
->
pCoords2d
=
HeapAlloc
(
GetProcessHeap
(),
0
,
This
->
nb_coords2d
*
sizeof
(
*
This
->
p
Coords2d
));
memcpy
(
This
->
pCoords2d
,
ptr
+
sizeof
(
DWORD
),
This
->
nb_coords2d
*
sizeof
(
*
This
->
p
Coords2d
));
}
else
if
(
IsEqualGUID
(
guid
,
&
TID_D3DRMMeshMaterialList
))
...
...
@@ -1490,7 +1491,7 @@ HRESULT load_mesh_data(IDirect3DRMMeshBuilder3 *iface, IDirectXFileData *pData,
if
(
!
This
->
pCoords2d
)
{
This
->
nb_coords2d
=
This
->
nb_vertices
;
This
->
pCoords2d
=
HeapAlloc
(
GetProcessHeap
(),
0
,
This
->
nb_coords2d
*
sizeof
(
Coords2d
));
This
->
pCoords2d
=
HeapAlloc
(
GetProcessHeap
(),
0
,
This
->
nb_coords2d
*
sizeof
(
*
This
->
p
Coords2d
));
for
(
i
=
0
;
i
<
This
->
nb_coords2d
;
i
++
)
{
This
->
pCoords2d
[
i
].
u
=
0
.
0
f
;
...
...
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