Module: wine Branch: master Commit: fe2f34a5c78762b924569723244fbf1db41a3a4a URL: http://source.winehq.org/git/wine.git/?a=commit;h=fe2f34a5c78762b92456972324...
Author: Michael Stefaniuc mstefani@redhat.de Date: Fri Jul 1 10:36:17 2016 +0200
riched20/tests: Use InflateRect() instead of open coding it.
Signed-off-by: Michael Stefaniuc mstefani@redhat.de Signed-off-by: Huw Davies huw@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/riched20/tests/editor.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c index 200ce53..fd5bcc4 100644 --- a/dlls/riched20/tests/editor.c +++ b/dlls/riched20/tests/editor.c @@ -7057,10 +7057,7 @@ static void test_format_rect(void) for (n = -3; n <= 3; n++) { rc = clientRect; - rc.top += n; - rc.left += n; - rc.bottom -= n; - rc.right -= n; + InflateRect(&rc, -n, -n); SendMessageA(hwnd, EM_SETRECT, 0, (LPARAM)&rc);
expected = rc; @@ -7206,10 +7203,7 @@ static void test_format_rect(void) expected.top, expected.left, expected.bottom, expected.right);
rc = clientRect; - rc.top += 5; - rc.left += 5; - rc.bottom -= 5; - rc.right -= 5; + InflateRect(&rc, -5, -5); expected = rc; expected.top -= 1; expected.left -= 1;