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

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-06-28 10:24:43 +02:00 committed by Alexandre Julliard
parent 9c64ca0d93
commit 6329f37d5c
1 changed files with 1 additions and 4 deletions

View File

@ -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;