Module: wine
Branch: master
Commit: bdad5ace2a4c2cab76a54c91cb6dae7b24f8382c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bdad5ace2a4c2cab76a54c91c…
Author: Henri Verbeet <hverbeet(a)codeweavers.com>
Date: Tue Dec 1 11:27:48 2009 +0100
d3d9/tests: Trace the viewport in clear_test().
There are some failures in this test on Win7 that appear to be related to the
initial viewport. Perhaps this trace will help narrow it down.
---
dlls/d3d9/tests/visual.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c
index b871ad7..18a69c6 100644
--- a/dlls/d3d9/tests/visual.c
+++ b/dlls/d3d9/tests/visual.c
@@ -495,6 +495,9 @@ static void clear_test(IDirect3DDevice9 *device)
hr = IDirect3DDevice9_GetViewport(device, &old_vp);
ok(hr == D3D_OK, "IDirect3DDevice9_GetViewport failed with %08x\n", hr);
+ trace("viewport: X %u, Y %u, W %u, H %u, MinZ %.8e, MaxZ %.8e.\n",
+ old_vp.X, old_vp.Y, old_vp.Width, old_vp.Height, old_vp.MinZ, old_vp.MaxZ);
+
vp.X = 160;
vp.Y = 120;
vp.Width = 160;