Module: wine Branch: master Commit: 88217213ef80166deab58d3fd58903729ea5a256 URL: http://source.winehq.org/git/wine.git/?a=commit;h=88217213ef80166deab58d3fd5...
Author: Michael Stefaniuc mstefani@redhat.de Date: Wed Jun 29 09:53:58 2016 +0200
d3d10core/tests: Use SetRect() instead of open coding it.
Signed-off-by: Michael Stefaniuc mstefani@redhat.de Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/d3d10core/tests/device.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/dlls/d3d10core/tests/device.c b/dlls/d3d10core/tests/device.c index 24b7b50..b857f36 100644 --- a/dlls/d3d10core/tests/device.c +++ b/dlls/d3d10core/tests/device.c @@ -3960,10 +3960,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;