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:
parent
a58822dba4
commit
887b445bb8
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue