Daniel Scharrer : include: Fix compile error in d3dtypes. h for c++ programs that define D3D_OVERLOADS.
Alexandre Julliard
julliard at winehq.org
Fri Jun 3 14:04:39 CDT 2011
Module: wine
Branch: master
Commit: 5deab783e2a18fa2819d99e7ba3b197a189bb3b4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5deab783e2a18fa2819d99e7ba3b197a189bb3b4
Author: Daniel Scharrer <dscharrer at gmail.com>
Date: Thu Jun 2 19:27:44 2011 +0200
include: Fix compile error in d3dtypes.h for c++ programs that define D3D_OVERLOADS.
---
include/d3dtypes.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/d3dtypes.h b/include/d3dtypes.h
index 21b9e74..ab06b5e 100644
--- a/include/d3dtypes.h
+++ b/include/d3dtypes.h
@@ -336,9 +336,9 @@ typedef struct _D3DMATRIX {
/* This is different from MS, but avoids anonymous structs. */
D3DVALUE &operator () (int r, int c)
- { return ((D3DVALUE [4][4])&_11)[r][c]; }
+ { return (&_11)[r*4 + c]; }
const D3DVALUE &operator() (int r, int c) const
- { return ((const D3DVALUE [4][4])&_11)[r][c]; }
+ { return (&_11)[r*4 + c]; }
#endif
} D3DMATRIX, *LPD3DMATRIX;
More information about the wine-cvs
mailing list