usp10/tests: Use SetRect() instead of open coding it.
Aric Stewart
aric at codeweavers.com
Fri Jul 15 09:23:09 CDT 2016
Signed-off-by: Aric Stewart <aric at codeweavers.com>
On 7/11/16 2:57 AM, Michael Stefaniuc wrote:
> 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);
>
More information about the wine-patches
mailing list