Mercurial > mplayer.hg
comparison gui/win32/dialogs.c @ 35160:bbcd42f7f0af
Get rid of unnecessary use of variable dvd_chapter in Win32 GUI.
Use GUI's guiInfo.Chapter instead.
author | ib |
---|---|
date | Thu, 18 Oct 2012 12:38:58 +0000 |
parents | ade40c1d69b8 |
children | f42cc2361ee4 |
comparison
equal
deleted
inserted
replaced
35159:ade40c1d69b8 | 35160:bbcd42f7f0af |
---|---|
832 for (j=0; j<guiInfo.Chapters; j++) | 832 for (j=0; j<guiInfo.Chapters; j++) |
833 { | 833 { |
834 sprintf(&chapters[j], "%d", guiInfo.Chapters - j); | 834 sprintf(&chapters[j], "%d", guiInfo.Chapters - j); |
835 SendDlgItemMessage(hwnd, ID_CHAPTERSEL, CB_INSERTSTRING, 0, (LPARAM) &chapters[j]); | 835 SendDlgItemMessage(hwnd, ID_CHAPTERSEL, CB_INSERTSTRING, 0, (LPARAM) &chapters[j]); |
836 } | 836 } |
837 SendDlgItemMessage(hwnd, ID_CHAPTERSEL, CB_SETCURSEL, dvd_chapter, 0); | 837 SendDlgItemMessage(hwnd, ID_CHAPTERSEL, CB_SETCURSEL, guiInfo.Chapter - 1, 0); |
838 | 838 |
839 break; | 839 break; |
840 case WM_COMMAND: | 840 case WM_COMMAND: |
841 { | 841 { |
842 switch (LOWORD(wParam)) | 842 switch (LOWORD(wParam)) |