usp10/tests: Use SetRect() instead of open coding it.
Michael Stefaniuc
mstefani at redhat.de
Mon Jul 11 02:57:03 CDT 2016
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
dlls/usp10/tests/usp10.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/dlls/usp10/tests/usp10.c b/dlls/usp10/tests/usp10.c
index bb044ce..6b2152f 100644
--- a/dlls/usp10/tests/usp10.c
+++ b/dlls/usp10/tests/usp10.c
@@ -2450,10 +2450,7 @@ static void test_ScriptTextOut(HDC hdc)
ok (hr == S_OK, "ScriptTextOut should return S_OK not (%08x)\n", hr);
/* Test Rect Rgn is acceptable */
- rect.top = 10;
- rect.bottom = 20;
- rect.left = 10;
- rect.right = 40;
+ SetRect(&rect, 10, 10, 40, 20);
hr = ScriptTextOut(hdc, &psc, 0, 0, 0, &rect, &pItem[0].a, NULL, 0, pwOutGlyphs1, pcGlyphs,
piAdvance, NULL, pGoffset);
ok (hr == S_OK, "ScriptTextOut should return S_OK not (%08x)\n", hr);
@@ -2616,10 +2613,7 @@ static void test_ScriptTextOut3(HDC hdc)
ok (hr == S_OK, "Should return S_OK not (%08x)\n", hr);
/* Test Rect Rgn is acceptable */
- rect.top = 10;
- rect.bottom = 20;
- rect.left = 10;
- rect.right = 40;
+ SetRect(&rect, 10, 10, 40, 20);
hr = ScriptTextOut(hdc, &psc, 0, 0, 0, &rect, &pItem[0].a, NULL, 0, pwOutGlyphs1, pcGlyphs,
piAdvance, NULL, pGoffset);
ok (hr == S_OK, "ScriptTextOut should return S_OK not (%08x)\n", hr);
--
2.4.11
More information about the wine-patches
mailing list