ddraw: Fix comparefloat() so it compiles with Visual C++ when given a negative value.
This commit is contained in:
parent
77fd5aa23b
commit
ceb06a2f00
|
@ -34,7 +34,7 @@ static LPDIRECT3DVERTEXBUFFER7 lpVBufDest2 = NULL;
|
|||
|
||||
/* To compare bad floating point numbers. Not the ideal way to do it,
|
||||
* but it should be enough for here */
|
||||
#define comparefloat(a, b) ( ((a - b) < 0.0001) && ((a-b) > -0.0001) )
|
||||
#define comparefloat(a, b) ( (((a) - (b)) < 0.0001) && (((a) - (b)) > -0.0001) )
|
||||
|
||||
static HRESULT (WINAPI *pDirectDrawCreateEx)(LPGUID,LPVOID*,REFIID,LPUNKNOWN);
|
||||
|
||||
|
|
Loading…
Reference in New Issue