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

This commit is contained in:
Francois Gouget 2006-09-29 12:51:58 +02:00 committed by Alexandre Julliard
parent 77fd5aa23b
commit ceb06a2f00
1 changed files with 1 additions and 1 deletions

View File

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