Michael Stefaniuc : d3dx10/tests: Use SetRect() instead of open coding it.

Alexandre Julliard julliard at winehq.org
Sun Jul 3 12:18:27 CDT 2016


Module: wine
Branch: master
Commit: 6329f37d5c0b3b6f2ffb5a4eeaf18fe18bbdafe6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6329f37d5c0b3b6f2ffb5a4eeaf18fe18bbdafe6

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Jun 28 10:24:43 2016 +0200

d3dx10/tests: Use SetRect() instead of open coding it.

Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3dx10_43/tests/d3dx10.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/dlls/d3dx10_43/tests/d3dx10.c b/dlls/d3dx10_43/tests/d3dx10.c
index 44c2333..423ab4d 100644
--- a/dlls/d3dx10_43/tests/d3dx10.c
+++ b/dlls/d3dx10_43/tests/d3dx10.c
@@ -344,10 +344,7 @@ float4 main(float4 color : COLOR) : SV_TARGET
 
     for (i = 0; i < D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE; ++i)
     {
-        tmp_rect[i].left = i;
-        tmp_rect[i].top = i * 2;
-        tmp_rect[i].right = i + 1;
-        tmp_rect[i].bottom = (i + 1) * 2;
+        SetRect(&tmp_rect[i], i, i * 2, i + 1, (i + 1) * 2);
 
         tmp_viewport[i].TopLeftX = i * 3;
         tmp_viewport[i].TopLeftY = i * 4;




More information about the wine-cvs mailing list