include: Fix compile error in d3dtypes.h for c++ programs that define D3D_OVERLOADS.
This commit is contained in:
parent
6647c8f72d
commit
5deab783e2
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue