[PATCH] d3dx9/tests: Use SetRectEmpty() instead of open coding it

Michael Stefaniuc mstefani at winehq.org
Wed Dec 5 11:57:41 CST 2018


Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
 dlls/d3dx9_36/tests/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/d3dx9_36/tests/core.c b/dlls/d3dx9_36/tests/core.c
index 91e458bbb8..fa874a5ef5 100644
--- a/dlls/d3dx9_36/tests/core.c
+++ b/dlls/d3dx9_36/tests/core.c
@@ -621,7 +621,7 @@ static void test_ID3DXFont(IDirect3DDevice9 *device)
         ok(height == tests[i].font_height, "Got unexpected height %u.\n", height);
         }
 
-        SetRect(&rect, 0, 0, 0, 0);
+        SetRectEmpty(&rect);
         height = ID3DXFont_DrawTextW(font, sprite, testW, size, &rect,
                 DT_LEFT | DT_CALCRECT, 0xffffffff);
         todo_wine ok(height == tests[i].font_height, "Got unexpected height %u.\n", height);
-- 
2.19.2




More information about the wine-devel mailing list