diff --git a/pcsx2/gui/FrameForGS.cpp b/pcsx2/gui/FrameForGS.cpp index b6814a6c34..f5302b1053 100644 --- a/pcsx2/gui/FrameForGS.cpp +++ b/pcsx2/gui/FrameForGS.cpp @@ -119,9 +119,8 @@ void GSPanel::DoResize() // Default to matching client size. // Add a few pixels here, so the outermost pixels of the GS plugin output are "hidden". // This avoids issues with flashing pixels on the edges, especially when Anti Aliasing is used. - // Note: Tests in FFX showed we need at least 5 pixels. So using 6 for good measure :p - viewport.x+=6; - viewport.y+=6; + viewport.x+=4; + viewport.y+=4; break; case AspectRatio_4_3: @@ -209,6 +208,8 @@ void GSPanel::OnFocus( wxFocusEvent& evt ) } else DoShowMouse(); + + //Console.Warning("GS frame > focus set"); } void GSPanel::OnFocusLost( wxFocusEvent& evt ) @@ -216,6 +217,7 @@ void GSPanel::OnFocusLost( wxFocusEvent& evt ) evt.Skip(); m_HasFocus = false; DoShowMouse(); + //Console.Warning("GS frame > focus lost"); } void GSPanel::AppStatusEvent_OnSettingsApplied() diff --git a/plugins/spu2-x/src/Config.h b/plugins/spu2-x/src/Config.h index 9506ec4cfb..441a0ff342 100644 --- a/plugins/spu2-x/src/Config.h +++ b/plugins/spu2-x/src/Config.h @@ -67,7 +67,7 @@ extern bool EffectsDisabled; extern u32 OutputModule; extern int SndOutLatencyMS; -extern bool timeStretchDisabled; +extern bool timeStretchEnabled; extern bool asyncMixingEnabled; #ifndef __LINUX__ diff --git a/plugins/spu2-x/src/Linux/Config.cpp b/plugins/spu2-x/src/Linux/Config.cpp index a601d712c3..a59998f242 100644 --- a/plugins/spu2-x/src/Linux/Config.cpp +++ b/plugins/spu2-x/src/Linux/Config.cpp @@ -47,7 +47,7 @@ int ReverbBoost = 0; // OUTPUT u32 OutputModule = FindOutputModuleById( PortaudioOut->GetIdent() ); int SndOutLatencyMS = 160; -bool timeStretchDisabled = false; +bool timeStretchEnabled = true; bool asyncMixingEnabled = false; /*****************************************************************************/ @@ -63,7 +63,7 @@ void ReadSettings() OutputModule = FindOutputModuleById( temp.c_str() );// find the driver index of this module SndOutLatencyMS = CfgReadInt(L"OUTPUT",L"Latency", 150); - timeStretchDisabled = CfgReadBool( L"OUTPUT", L"Disable_Timestretch", false ); + timeStretchEnabled = CfgReadBool( L"OUTPUT", L"Enable_Timestretch", true ); asyncMixingEnabled = CfgReadBool( L"OUTPUT", L"Enable_AsyncMixing", false ); PortaudioOut->ReadSettings(); @@ -88,7 +88,7 @@ void WriteSettings() CfgWriteStr(L"OUTPUT",L"Output_Module", mods[OutputModule]->GetIdent() ); CfgWriteInt(L"OUTPUT",L"Latency", SndOutLatencyMS); - CfgWriteBool(L"OUTPUT",L"Disable_Timestretch", timeStretchDisabled); + CfgWriteBool(L"OUTPUT",L"Enable_Timestretch", timeStretchEnabled); CfgWriteBool(L"OUTPUT",L"Enable_AsyncMixing", asyncMixingEnabled); PortaudioOut->WriteSettings(); @@ -171,7 +171,7 @@ void DisplayDialog() latency_slide = gtk_hscale_new_with_range(LATENCY_MIN, LATENCY_MAX, 5); gtk_range_set_value(GTK_RANGE(latency_slide), SndOutLatencyMS); - time_check = gtk_check_button_new_with_label("Disable Time Stretch"); + time_check = gtk_check_button_new_with_label("Enable Time Stretch"); advanced_button = gtk_button_new_with_label("Advanced..."); @@ -206,7 +206,7 @@ void DisplayDialog() gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(effects_check), EffectsDisabled); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(debug_check), DebugEnabled); - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(time_check), timeStretchDisabled); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(time_check), timeStretchEnabled); gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), main_frame); gtk_widget_show_all (dialog); @@ -233,7 +233,7 @@ void DisplayDialog() OutputModule = FindOutputModuleById( PortaudioOut->GetIdent() ); SndOutLatencyMS = gtk_range_get_value(GTK_RANGE(latency_slide)); - timeStretchDisabled = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(time_check)); + timeStretchEnabled = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(time_check)); } gtk_widget_destroy (dialog); diff --git a/plugins/spu2-x/src/Linux/Config.h b/plugins/spu2-x/src/Linux/Config.h index 1d47e6e7f8..48d54420d7 100644 --- a/plugins/spu2-x/src/Linux/Config.h +++ b/plugins/spu2-x/src/Linux/Config.h @@ -78,7 +78,7 @@ extern wchar_t dspPlugin[]; extern int dspPluginModule; extern bool dspPluginEnabled; -extern bool timeStretchDisabled; +extern bool timeStretchEnabled; extern bool asyncMixingEnabled; extern bool StereoExpansionEnabled; diff --git a/plugins/spu2-x/src/SndOut.cpp b/plugins/spu2-x/src/SndOut.cpp index 4e4b7c8b99..d5c2e4d0c2 100644 --- a/plugins/spu2-x/src/SndOut.cpp +++ b/plugins/spu2-x/src/SndOut.cpp @@ -127,7 +127,7 @@ bool SndBuffer::CheckUnderrunStatus( int& nSamples, int& quietSampleCount ) quietSampleCount = 0; if( m_underrun_freeze ) { - int toFill = m_size / (timeStretchDisabled && !asyncMixingEnabled ? 32 : 400); + int toFill = m_size / (!timeStretchEnabled && !asyncMixingEnabled ? 32 : 400); toFill = GetAlignedBufferSize( toFill ); // toFill is now aligned to a SndOutPacket @@ -149,7 +149,7 @@ bool SndBuffer::CheckUnderrunStatus( int& nSamples, int& quietSampleCount ) quietSampleCount = SndOutPacketSize - m_data; m_underrun_freeze = true; - if( !timeStretchDisabled && !asyncMixingEnabled ) + if( timeStretchEnabled && !asyncMixingEnabled ) timeStretchUnderrun(); return nSamples != 0; @@ -192,7 +192,7 @@ void SndBuffer::_WriteSamples(StereoOut32 *bData, int nSamples) s32 comp; - if( !timeStretchDisabled && !asyncMixingEnabled ) + if( timeStretchEnabled && !asyncMixingEnabled ) { comp = timeStretchOverrun(); } @@ -350,7 +350,7 @@ void SndBuffer::Write( const StereoOut32& Sample ) { for( int i=0; iGetIdent() ); CfgWriteInt(L"OUTPUT",L"Latency", SndOutLatencyMS); - CfgWriteBool(L"OUTPUT",L"Disable_Timestretch", timeStretchDisabled); + CfgWriteBool(L"OUTPUT",L"Enable_Timestretch", timeStretchEnabled); CfgWriteBool(L"OUTPUT",L"Enable_AsyncMixing", asyncMixingEnabled); CfgWriteBool(L"OUTPUT",L"Enable_StereoExpansion", StereoExpansionEnabled); @@ -177,12 +177,12 @@ BOOL CALLBACK ConfigProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam) swprintf_s(temp,L"%d ms (avg)",SndOutLatencyMS); SetWindowText(GetDlgItem(hWnd,IDC_LATENCY_LABEL),temp); - EnableWindow( GetDlgItem( hWnd, IDC_OPEN_CONFIG_SOUNDTOUCH ), !timeStretchDisabled ); + EnableWindow( GetDlgItem( hWnd, IDC_OPEN_CONFIG_SOUNDTOUCH ), timeStretchEnabled ); EnableWindow( GetDlgItem( hWnd, IDC_OPEN_CONFIG_DEBUG ), DebugEnabled ); SET_CHECK(IDC_EFFECTS_DISABLE, EffectsDisabled); SET_CHECK(IDC_EXPANSION_ENABLE,StereoExpansionEnabled); - SET_CHECK(IDC_TS_DISABLE, timeStretchDisabled); + SET_CHECK(IDC_TS_ENABLE, timeStretchEnabled); SET_CHECK(IDC_DEBUG_ENABLE, DebugEnabled); SET_CHECK(IDC_DSP_ENABLE, dspPluginEnabled); } @@ -239,8 +239,8 @@ BOOL CALLBACK ConfigProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam) HANDLE_CHECK(IDC_EFFECTS_DISABLE,EffectsDisabled); HANDLE_CHECK(IDC_DSP_ENABLE,dspPluginEnabled); HANDLE_CHECK(IDC_EXPANSION_ENABLE,StereoExpansionEnabled); - HANDLE_CHECKNB(IDC_TS_DISABLE,timeStretchDisabled); - EnableWindow( GetDlgItem( hWnd, IDC_OPEN_CONFIG_SOUNDTOUCH ), !timeStretchDisabled ); + HANDLE_CHECKNB(IDC_TS_ENABLE,timeStretchEnabled); + EnableWindow( GetDlgItem( hWnd, IDC_OPEN_CONFIG_SOUNDTOUCH ), timeStretchEnabled ); break; HANDLE_CHECKNB(IDC_DEBUG_ENABLE,DebugEnabled); diff --git a/plugins/spu2-x/src/Windows/Spu2-X.rc b/plugins/spu2-x/src/Windows/Spu2-X.rc index 9163543b79..e91376fb76 100644 --- a/plugins/spu2-x/src/Windows/Spu2-X.rc +++ b/plugins/spu2-x/src/Windows/Spu2-X.rc @@ -58,7 +58,7 @@ BEGIN PUSHBUTTON "Configure...",IDC_OUTCONF,236,40,54,12 COMBOBOX IDC_INTERPOLATE,14,26,114,84,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP CONTROL "Slider2",IDC_LATENCY_SLIDER,"msctls_trackbar32",TBS_AUTOTICKS | WS_TABSTOP,167,73,116,10 - CONTROL "Disable Time-stretching",IDC_TS_DISABLE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,150,96,121,11 + CONTROL "Enable Time-stretching",IDC_TS_ENABLE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,150,96,121,11 CONTROL "Use a Winamp DSP plugin",IDC_DSP_ENABLE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,149,216,126,11 CHECKBOX "Disable Effects Processing",IDC_EFFECTS_DISABLE,14,47,112,10,NOT WS_TABSTOP LTEXT "Latency:",IDC_STATIC,181,62,33,9,NOT WS_GROUP diff --git a/plugins/spu2-x/src/Windows/resource.h b/plugins/spu2-x/src/Windows/resource.h index 1c2350b74c..61831378ac 100644 --- a/plugins/spu2-x/src/Windows/resource.h +++ b/plugins/spu2-x/src/Windows/resource.h @@ -32,7 +32,7 @@ #define IDC_MSGSHOW 1024 #define IDC_OUTCONF 1028 #define IDC_DSP_ENABLE 1029 -#define IDC_TS_DISABLE 1030 +#define IDC_TS_ENABLE 1030 #define IDC_DS_DEVICE 1032 #define IDC_DBG_OVERRUNS 1038 #define IDC_DBG_CACHE 1039