Mercurial > mplayer.hg
diff gui/win32/dialogs.c @ 35159:ade40c1d69b8
Get rid of global variable dvd_title in GUI.
Its usage is pointless anyway, because the GUI uses guiInfo.Track
instead.
As a result, it doesn't have to be global any longer and can be defined
in stream/stream_dvd.c (where it belongs).
author | ib |
---|---|
date | Thu, 18 Oct 2012 12:17:58 +0000 |
parents | ac6b38cd0d45 |
children | bbcd42f7f0af |
line wrap: on
line diff
--- a/gui/win32/dialogs.c Thu Oct 18 12:07:59 2012 +0000 +++ b/gui/win32/dialogs.c Thu Oct 18 12:17:58 2012 +0000 @@ -827,7 +827,7 @@ sprintf(&titles[i], "%d", guiInfo.Tracks - i); SendDlgItemMessage(hwnd, ID_TITLESEL, CB_INSERTSTRING, 0, (LPARAM) &titles[i]); } - SendDlgItemMessage(hwnd, ID_TITLESEL, CB_SETCURSEL, dvd_title, 0); + SendDlgItemMessage(hwnd, ID_TITLESEL, CB_SETCURSEL, guiInfo.Track - 1, 0); for (j=0; j<guiInfo.Chapters; j++) {