d3dx9_36: Fix compilation on systems that don't support nameless unions.
Francois Gouget
fgouget at free.fr
Sat Jul 23 06:42:39 CDT 2011
---
dlls/d3dx9_36/effect.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/d3dx9_36/effect.c b/dlls/d3dx9_36/effect.c
index 499682c..6222dec 100644
--- a/dlls/d3dx9_36/effect.c
+++ b/dlls/d3dx9_36/effect.c
@@ -20,6 +20,8 @@
#include "wine/port.h"
#include "wine/debug.h"
#include "wine/unicode.h"
+
+#define NONAMELESSUNION
#include "windef.h"
#include "wingdi.h"
#include "d3dx9_36_private.h"
@@ -897,9 +899,9 @@ static void get_matrix(struct d3dx_parameter *param, D3DXMATRIX *matrix)
for (k = 0; k < 4; ++k)
{
if ((i < param->rows) && (k < param->columns))
- matrix->m[i][k] = get_float(param->type, (float *)param->data + i * param->columns + k);
+ matrix->u.m[i][k] = get_float(param->type, (float *)param->data + i * param->columns + k);
else
- matrix->m[i][k] = 0.0f;
+ matrix->u.m[i][k] = 0.0f;
}
}
}
--
1.7.5.4
More information about the wine-patches
mailing list