include: Fix compile error in d3dtypes.h for c++ programs that define D3D_OVERLOADS.

oldstable
Daniel Scharrer 2011-06-02 19:27:44 +02:00 committed by Alexandre Julliard
parent 6647c8f72d
commit 5deab783e2
1 changed files with 2 additions and 2 deletions

View File

@ -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;