Commit 5deab783 authored by Daniel Scharrer's avatar Daniel Scharrer Committed by Alexandre Julliard

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

parent 6647c8f7
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment