[MPlayer-cvslog] r35254 - trunk/gui/win32/dialogs.c

ib subversion at mplayerhq.hu
Thu Oct 18 14:38:58 CEST 2012


Author: ib
Date: Thu Oct 18 14:38:58 2012
New Revision: 35254

Log:
Get rid of unnecessary use of variable dvd_chapter in Win32 GUI.

Use GUI's guiInfo.Chapter instead.

Modified:
   trunk/gui/win32/dialogs.c

Modified: trunk/gui/win32/dialogs.c
==============================================================================
--- trunk/gui/win32/dialogs.c	Thu Oct 18 14:17:58 2012	(r35253)
+++ trunk/gui/win32/dialogs.c	Thu Oct 18 14:38:58 2012	(r35254)
@@ -834,7 +834,7 @@ static LRESULT CALLBACK TitleChapterWndP
                 sprintf(&chapters[j], "%d", guiInfo.Chapters - j);
                 SendDlgItemMessage(hwnd, ID_CHAPTERSEL, CB_INSERTSTRING, 0, (LPARAM) &chapters[j]);
             }
-            SendDlgItemMessage(hwnd, ID_CHAPTERSEL, CB_SETCURSEL, dvd_chapter, 0);
+            SendDlgItemMessage(hwnd, ID_CHAPTERSEL, CB_SETCURSEL, guiInfo.Chapter - 1, 0);
 
             break;
         case WM_COMMAND:


More information about the MPlayer-cvslog mailing list