Michael Stefaniuc : winefile: Use SetRectEmpty() instead of open coding it.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Mar 8 08:03:02 CST 2016
Module: wine
Branch: master
Commit: 887b445bb87861f2c11e6c5248d105c1fc52f125
URL: http://source.winehq.org/git/wine.git/?a=commit;h=887b445bb87861f2c11e6c5248d105c1fc52f125
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Tue Mar 8 11:49:07 2016 +0100
winefile: Use SetRectEmpty() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/winefile/winefile.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c
index 9d3f0e1..f8247a7 100644
--- a/programs/winefile/winefile.c
+++ b/programs/winefile/winefile.c
@@ -2417,10 +2417,7 @@ static BOOL calc_widths(Pane* pane, BOOL anyway)
dis.itemState = 0;
dis.hwndItem = pane->hwnd;
dis.hDC = hdc;
- dis.rcItem.left = 0;
- dis.rcItem.top = 0;
- dis.rcItem.right = 0;
- dis.rcItem.bottom = 0;
+ SetRectEmpty(&dis.rcItem);
/*dis.itemData = 0; */
draw_item(pane, &dis, entry, COLUMNS);
@@ -2493,10 +2490,7 @@ static void calc_single_width(Pane* pane, int col)
dis.itemState = 0;
dis.hwndItem = pane->hwnd;
dis.hDC = hdc;
- dis.rcItem.left = 0;
- dis.rcItem.top = 0;
- dis.rcItem.right = 0;
- dis.rcItem.bottom = 0;
+ SetRectEmpty(&dis.rcItem);
/*dis.itemData = 0; */
draw_item(pane, &dis, entry, col);
More information about the wine-cvs
mailing list