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
b5d64260
Commit
b5d64260
authored
May 25, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
May 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Get rid of the D3D_DECL_* macros.
parent
51024a07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
vertexdeclaration.c
dlls/d3d9/vertexdeclaration.c
+4
-6
No files found.
dlls/d3d9/vertexdeclaration.c
View file @
b5d64260
...
...
@@ -27,8 +27,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d9);
static
const
struct
{
enum
wined3d_format_id
format
;
int
size
;
int
type
size
;
unsigned
int
component_count
;
unsigned
int
component_
size
;
}
d3d_dtype_lookup
[]
=
{
...
...
@@ -51,9 +51,6 @@ d3d_dtype_lookup[] =
/* D3DDECLTYPE_FLOAT16_4 */
{
WINED3DFMT_R16G16B16A16_FLOAT
,
4
,
sizeof
(
short
int
)}
};
#define D3D_DECL_SIZE(type) d3d_dtype_lookup[type].size
#define D3D_DECL_TYPESIZE(type) d3d_dtype_lookup[type].typesize
static
inline
IDirect3DVertexDeclaration9Impl
*
impl_from_IDirect3DVertexDeclaration9
(
IDirect3DVertexDeclaration9
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IDirect3DVertexDeclaration9Impl
,
IDirect3DVertexDeclaration9_iface
);
...
...
@@ -192,7 +189,8 @@ HRESULT vdecl_convert_fvf(
elements
[
idx
].
Stream
=
0
;
elements
[
idx
].
Method
=
D3DDECLMETHOD_DEFAULT
;
elements
[
idx
].
Offset
=
offset
;
offset
+=
D3D_DECL_SIZE
(
elements
[
idx
].
Type
)
*
D3D_DECL_TYPESIZE
(
elements
[
idx
].
Type
);
offset
+=
d3d_dtype_lookup
[
elements
[
idx
].
Type
].
component_count
*
d3d_dtype_lookup
[
elements
[
idx
].
Type
].
component_size
;
}
*
ppVertexElements
=
elements
;
...
...
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