d3dx10/tests: Use wine_dbgstr_rect() to print a RECT.

Michael Stefaniuc mstefani at redhat.de
Fri Jun 10 02:41:08 CDT 2016


Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
 dlls/d3dx10_43/tests/d3dx10.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/d3dx10_43/tests/d3dx10.c b/dlls/d3dx10_43/tests/d3dx10.c
index b8bfa1c..44c2333 100644
--- a/dlls/d3dx10_43/tests/d3dx10.c
+++ b/dlls/d3dx10_43/tests/d3dx10.c
@@ -516,8 +516,8 @@ float4 main(float4 color : COLOR) : SV_TARGET
                     && tmp_rect[i].top == i * 2
                     && tmp_rect[i].right == i + 1
                     && tmp_rect[i].bottom == (i + 1) * 2,
-                    "Got unexpected scissor rect {%d, %d, %d, %d} in slot %u.\n",
-                    tmp_rect[i].left, tmp_rect[i].top, tmp_rect[i].right, tmp_rect[i].bottom, i);
+                    "Got unexpected scissor rect %s in slot %u.\n",
+                    wine_dbgstr_rect(&tmp_rect[i]), i);
     }
     ID3D10Device_RSGetViewports(device, &count, NULL);
     todo_wine ok(count == D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE,
-- 
2.4.11



More information about the wine-patches mailing list