Henri Verbeet : d3d9: Get rid of the D3DDECLTYPE_INFO typedef.
Alexandre Julliard
julliard at winehq.org
Thu May 24 14:58:13 CDT 2012
Module: wine
Branch: master
Commit: 8560f36cb8680f20e52f0b12fa21d0b387d5797b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8560f36cb8680f20e52f0b12fa21d0b387d5797b
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu May 24 18:27:44 2012 +0200
d3d9: Get rid of the D3DDECLTYPE_INFO typedef.
---
dlls/d3d9/vertexdeclaration.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/dlls/d3d9/vertexdeclaration.c b/dlls/d3d9/vertexdeclaration.c
index 65d8d18..421f099 100644
--- a/dlls/d3d9/vertexdeclaration.c
+++ b/dlls/d3d9/vertexdeclaration.c
@@ -24,14 +24,15 @@
WINE_DEFAULT_DEBUG_CHANNEL(d3d9);
-typedef struct _D3DDECLTYPE_INFO {
+static const struct
+{
D3DDECLTYPE d3dType;
enum wined3d_format_id format;
int size;
int typesize;
-} D3DDECLTYPE_INFO;
-
-static D3DDECLTYPE_INFO const d3d_dtype_lookup[D3DDECLTYPE_UNUSED] = {
+}
+d3d_dtype_lookup[] =
+{
{D3DDECLTYPE_FLOAT1, WINED3DFMT_R32_FLOAT, 1, sizeof(float)},
{D3DDECLTYPE_FLOAT2, WINED3DFMT_R32G32_FLOAT, 2, sizeof(float)},
{D3DDECLTYPE_FLOAT3, WINED3DFMT_R32G32B32_FLOAT, 3, sizeof(float)},
More information about the wine-cvs
mailing list