SPU2-X: handling text during restore defautls

Previously the sound touch configure caption box will still have the outdated value of the sliders when using the restore defaults function, update the caption text also during restore defaults. ( use the first slider value for caption since that lies closer to the restore default box )
This commit is contained in:
Akash 2015-11-19 21:34:24 +05:30
parent 7a69812b17
commit f90eeb7861
1 changed files with 3 additions and 1 deletions

View File

@ -98,7 +98,7 @@ BOOL CALLBACK SoundtouchCfg::DialogProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM
WriteSettings(); WriteSettings();
EndDialog(hWnd,0); EndDialog(hWnd,0);
} }
else if( wmId == IDC_RESET_DEFAULTS ) else if( wmId == IDC_RESET_DEFAULTS )
{ {
SequenceLenMS = 30; SequenceLenMS = 30;
SeekWindowMS = 20; SeekWindowMS = 20;
@ -107,6 +107,8 @@ BOOL CALLBACK SoundtouchCfg::DialogProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM
SendDialogMsg( hWnd, IDC_SEQLEN_SLIDER, TBM_SETPOS, TRUE, SequenceLenMS ); SendDialogMsg( hWnd, IDC_SEQLEN_SLIDER, TBM_SETPOS, TRUE, SequenceLenMS );
SendDialogMsg( hWnd, IDC_SEEKWIN_SLIDER, TBM_SETPOS, TRUE, SeekWindowMS ); SendDialogMsg( hWnd, IDC_SEEKWIN_SLIDER, TBM_SETPOS, TRUE, SeekWindowMS );
SendDialogMsg( hWnd, IDC_OVERLAP_SLIDER, TBM_SETPOS, TRUE, OverlapMS ); SendDialogMsg( hWnd, IDC_OVERLAP_SLIDER, TBM_SETPOS, TRUE, OverlapMS );
AssignSliderValue((HWND)lParam, hWnd, SequenceLenMS);
} }
else if( wmId == IDCANCEL ) else if( wmId == IDCANCEL )
{ {