Michael Stefaniuc : d3dx10/tests: Use SetRect() instead of open coding it.
Module: wine Branch: master Commit: 6329f37d5c0b3b6f2ffb5a4eeaf18fe18bbdafe6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6329f37d5c0b3b6f2ffb5a4eea... Author: Michael Stefaniuc <mstefani(a)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(a)redhat.de> Signed-off-by: Matteo Bruni <mbruni(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)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;
participants (1)
-
Alexandre Julliard