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>
oldstable
Michael Stefaniuc 2016-07-01 10:36:17 +02:00 committed by Alexandre Julliard
parent 158e7e26fc
commit fe2f34a5c7
1 changed files with 2 additions and 8 deletions

View File

@ -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;