d3dtypes.h fix from wine repo (5deab783e2a18fa2819d99e7ba3b197a189bb3b4) Fix compile error in d3dtypes.h for c++ programs that define D3D_OVERLOADS git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/branches/releases/v1.0@4195 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-headers/direct-x/include/d3dtypes.h b/mingw-w64-headers/direct-x/include/d3dtypes.h index 2b8290f..fc52909 100644 --- a/mingw-w64-headers/direct-x/include/d3dtypes.h +++ b/mingw-w64-headers/direct-x/include/d3dtypes.h
@@ -343,9 +343,9 @@ /* 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;