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

Michael Stefaniuc mstefani at redhat.de
Tue Mar 8 04:49:07 CST 2016


Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
 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);
-- 
2.5.0



More information about the wine-patches mailing list