Francois Gouget : d3d9/tests: Replace some '#if 0's with 'if (0)'s.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jan 8 06:35:22 CST 2007
Module: wine
Branch: master
Commit: 3ba0e7b01b0d7a6596bc8db667c27448dfcc3656
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3ba0e7b01b0d7a6596bc8db667c27448dfcc3656
Author: Francois Gouget <fgouget at free.fr>
Date: Sat Jan 6 19:31:20 2007 +0100
d3d9/tests: Replace some '#if 0's with 'if (0)'s.
---
dlls/d3d9/tests/surface.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/dlls/d3d9/tests/surface.c b/dlls/d3d9/tests/surface.c
index 84ad723..c76a358 100644
--- a/dlls/d3d9/tests/surface.c
+++ b/dlls/d3d9/tests/surface.c
@@ -135,12 +135,10 @@ static void test_surface_alignment(IDire
hr = IDirect3DSurface9_LockRect(surface_ptr, &lockedRect, NULL, 0);
ok(hr == D3D_OK, "IDirect3DSurface9_LockRect returned %08x\n", hr);
ok(!(lockedRect.Pitch & 3), "Surface pitch %d is not 32-bit aligned\n", lockedRect.Pitch);
-#if 0
/* Some applications also depend on the exact pitch, rather than just
* the alignment. However, this test will fail or succeed depending
* on the NP2 mode we're using. */
- ok(lockedRect.Pitch == 12, "Got pitch %d, expected 12\n", lockedRect.Pitch);
-#endif
+ if (0) ok(lockedRect.Pitch == 12, "Got pitch %d, expected 12\n", lockedRect.Pitch);
hr = IDirect3DSurface9_UnlockRect(surface_ptr);
IDirect3DSurface9_Release(surface_ptr);
}
More information about the wine-cvs
mailing list