From 2f62f2273b7a7fc508bbd77a455b0270d843cceb Mon Sep 17 00:00:00 2001 From: "Jake.Stine" Date: Sun, 15 Feb 2009 12:55:32 +0000 Subject: [PATCH] SPU2-X: Couple more quick fixes to the config dialog box. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@501 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/spu2-x/src/Win32/Config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/spu2-x/src/Win32/Config.cpp b/plugins/spu2-x/src/Win32/Config.cpp index 799be72123..ebfcf90139 100644 --- a/plugins/spu2-x/src/Win32/Config.cpp +++ b/plugins/spu2-x/src/Win32/Config.cpp @@ -173,7 +173,7 @@ BOOL CALLBACK ConfigProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam) int maxexp = (int)(pow( (double)LATENCY_MAX+2, 1.0/3.0 ) * 128.0); INIT_SLIDER( IDC_LATENCY_SLIDER, minexp, maxexp, 200, 42, 12 ); - SendDialogMsg( hWnd, IDC_LATENCY_SLIDER, TBM_SETPOS, TRUE, (int)(pow( (double)SndOutLatencyMS, 1.0/3.0 ) * 128.0) ); + SendDialogMsg( hWnd, IDC_LATENCY_SLIDER, TBM_SETPOS, TRUE, (int)((pow( (double)SndOutLatencyMS, 1.0/3.0 ) * 128.0) + 0.5) ); swprintf_s(temp,_T("%d ms (avg)"),SndOutLatencyMS); SetWindowText(GetDlgItem(hWnd,IDC_LATENCY_LABEL),temp); @@ -183,7 +183,7 @@ BOOL CALLBACK ConfigProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam) SET_CHECK(IDC_EFFECTS_DISABLE, EffectsDisabled); SET_CHECK(IDC_TS_DISABLE, timeStretchDisabled); SET_CHECK(IDC_DEBUG_ENABLE, DebugEnabled); - + SET_CHECK(IDC_DSP_ENABLE, dspPluginEnabled); } break;