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

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-05-03 11:09:53 +02:00 committed by Alexandre Julliard
parent 365e2e9dbc
commit a5e2bd5902
1 changed files with 2 additions and 4 deletions

View File

@ -4233,15 +4233,13 @@ static void test_CreateGlyphRunAnalysis(void)
ok(hr == S_OK, "got 0x%08x\n", hr); ok(hr == S_OK, "got 0x%08x\n", hr);
ok(!IsRectEmpty(&rect), "got empty rect\n"); ok(!IsRectEmpty(&rect), "got empty rect\n");
rect.left = rect.top = 0; SetRect(&rect, 0, 0, 1, 1);
rect.bottom = rect.right = 1;
hr = IDWriteGlyphRunAnalysis_GetAlphaTextureBounds(analysis, DWRITE_TEXTURE_CLEARTYPE_3x1, &rect); hr = IDWriteGlyphRunAnalysis_GetAlphaTextureBounds(analysis, DWRITE_TEXTURE_CLEARTYPE_3x1, &rect);
ok(hr == S_OK, "got 0x%08x\n", hr); ok(hr == S_OK, "got 0x%08x\n", hr);
ok(IsRectEmpty(&rect), "unexpected empty rect\n"); ok(IsRectEmpty(&rect), "unexpected empty rect\n");
} }
else { else {
rect.left = rect.top = 0; SetRect(&rect, 0, 0, 1, 1);
rect.bottom = rect.right = 1;
hr = IDWriteGlyphRunAnalysis_GetAlphaTextureBounds(analysis, DWRITE_TEXTURE_ALIASED_1x1, &rect); hr = IDWriteGlyphRunAnalysis_GetAlphaTextureBounds(analysis, DWRITE_TEXTURE_ALIASED_1x1, &rect);
ok(hr == S_OK, "got 0x%08x\n", hr); ok(hr == S_OK, "got 0x%08x\n", hr);
ok(IsRectEmpty(&rect), "got empty rect\n"); ok(IsRectEmpty(&rect), "got empty rect\n");