Commit ceb06a2f authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

ddraw: Fix comparefloat() so it compiles with Visual C++ when given a negative value.

parent 77fd5aa2
...@@ -34,7 +34,7 @@ static LPDIRECT3DVERTEXBUFFER7 lpVBufDest2 = NULL; ...@@ -34,7 +34,7 @@ static LPDIRECT3DVERTEXBUFFER7 lpVBufDest2 = NULL;
/* To compare bad floating point numbers. Not the ideal way to do it, /* To compare bad floating point numbers. Not the ideal way to do it,
* but it should be enough for here */ * 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); static HRESULT (WINAPI *pDirectDrawCreateEx)(LPGUID,LPVOID*,REFIID,LPUNKNOWN);
......
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