Gerald Pfeifer : wineconsole: Remove variable font_idx which is not really used from WCUSER_FontPreviewProc .

Alexandre Julliard julliard at winehq.org
Tue May 4 13:06:37 CDT 2010


Module: wine
Branch: master
Commit: e86c6799a0efd47d422baee7e5725630ba9bb38a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e86c6799a0efd47d422baee7e5725630ba9bb38a

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Sat May  1 22:24:07 2010 +0200

wineconsole: Remove variable font_idx which is not really used from WCUSER_FontPreviewProc.

---

 programs/wineconsole/dialog.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/programs/wineconsole/dialog.c b/programs/wineconsole/dialog.c
index 622595d..cb3ff50 100644
--- a/programs/wineconsole/dialog.c
+++ b/programs/wineconsole/dialog.c
@@ -173,7 +173,6 @@ static LRESULT WINAPI WCUSER_FontPreviewProc(HWND hWnd, UINT msg, WPARAM wParam,
     case WM_PAINT:
         {
             PAINTSTRUCT	        ps;
-            int		        font_idx;
             int		        size_idx;
             struct dialog_info*	di;
             HFONT	        hFont, hOldFont;
@@ -181,7 +180,6 @@ static LRESULT WINAPI WCUSER_FontPreviewProc(HWND hWnd, UINT msg, WPARAM wParam,
             di = (struct dialog_info*)GetWindowLongPtrW(GetParent(hWnd), DWLP_USER);
             BeginPaint(hWnd, &ps);
 
-            font_idx = SendDlgItemMessageW(di->hDlg, IDC_FNT_LIST_FONT, LB_GETCURSEL, 0, 0);
             size_idx = SendDlgItemMessageW(di->hDlg, IDC_FNT_LIST_SIZE, LB_GETCURSEL, 0, 0);
 
             hFont = (HFONT)GetWindowLongPtrW(hWnd, 0);




More information about the wine-cvs mailing list