winefile: Use SetRectEmpty() instead of open coding it.

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-03-08 11:49:07 +01:00 committed by Alexandre Julliard
parent a58822dba4
commit 887b445bb8
1 changed files with 2 additions and 8 deletions

View File

@ -2417,10 +2417,7 @@ static BOOL calc_widths(Pane* pane, BOOL anyway)
dis.itemState = 0; dis.itemState = 0;
dis.hwndItem = pane->hwnd; dis.hwndItem = pane->hwnd;
dis.hDC = hdc; dis.hDC = hdc;
dis.rcItem.left = 0; SetRectEmpty(&dis.rcItem);
dis.rcItem.top = 0;
dis.rcItem.right = 0;
dis.rcItem.bottom = 0;
/*dis.itemData = 0; */ /*dis.itemData = 0; */
draw_item(pane, &dis, entry, COLUMNS); draw_item(pane, &dis, entry, COLUMNS);
@ -2493,10 +2490,7 @@ static void calc_single_width(Pane* pane, int col)
dis.itemState = 0; dis.itemState = 0;
dis.hwndItem = pane->hwnd; dis.hwndItem = pane->hwnd;
dis.hDC = hdc; dis.hDC = hdc;
dis.rcItem.left = 0; SetRectEmpty(&dis.rcItem);
dis.rcItem.top = 0;
dis.rcItem.right = 0;
dis.rcItem.bottom = 0;
/*dis.itemData = 0; */ /*dis.itemData = 0; */
draw_item(pane, &dis, entry, col); draw_item(pane, &dis, entry, col);