Module: wine
Branch: master
Commit: 66300403c40e2f2a953017d8688a010466a715f9
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=66300403c40e2f2a953017d…
Author: Francois Gouget <fgouget(a)free.fr>
Date: Fri Sep 29 13:03:40 2006 +0200
ddraw: Only perform the screen resolution changing tests in interactive mode.
---
dlls/ddraw/tests/ddrawmodes.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/dlls/ddraw/tests/ddrawmodes.c b/dlls/ddraw/tests/ddrawmodes.c
index fd00bb6..5020bec 100644
--- a/dlls/ddraw/tests/ddrawmodes.c
+++ b/dlls/ddraw/tests/ddrawmodes.c
@@ -1,6 +1,13 @@
/*
* Unit tests for ddraw functions
*
+ *
+ * Part of this test involves changing the screen resolution. But this is
+ * really disrupting if the user is doing something else and is not very nice
+ * to CRT screens. Plus, ideally it needs someone watching it to check that
+ * each mode displays correctly.
+ * So this is only done if the test is being run in interactive mode.
+ *
* Copyright (C) 2003 Sami Aario
*
* This library is free software; you can redistribute it and/or
@@ -342,7 +349,8 @@ START_TEST(ddrawmodes)
if (!createdirectdraw())
return;
enumdisplaymodes();
- testdisplaymodes();
+ if (winetest_interactive)
+ testdisplaymodes();
flushdisplaymodes();
releasedirectdraw();
Module: wine
Branch: master
Commit: ceb06a2f00040d5a91469b0acf6e83dcf3a49d88
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=ceb06a2f00040d5a91469b0…
Author: Francois Gouget <fgouget(a)free.fr>
Date: Fri Sep 29 12:51:58 2006 +0200
ddraw: Fix comparefloat() so it compiles with Visual C++ when given a negative value.
---
dlls/ddraw/tests/d3d.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ddraw/tests/d3d.c b/dlls/ddraw/tests/d3d.c
index 0409dce..55dc772 100644
--- a/dlls/ddraw/tests/d3d.c
+++ b/dlls/ddraw/tests/d3d.c
@@ -34,7 +34,7 @@ static LPDIRECT3DVERTEXBUFFER7 lpVBufDes
/* 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);