From: <sag...@us...> - 2009-12-28 02:58:06
|
Revision: 451 http://modplug.svn.sourceforge.net/modplug/?rev=451&view=rev Author: saga-games Date: 2009-12-28 02:57:57 +0000 (Mon, 28 Dec 2009) Log Message: ----------- [Imp] VST: Further improvement to param mapping so that the midi dialog really only pops up when the VST window has the focus [Fix] IT Compatibility: Reset NNA actions on every note (tentative fix) Modified Paths: -------------- trunk/OpenMPT/mptrack/Vstplug.cpp trunk/OpenMPT/soundlib/Snd_fx.cpp Modified: trunk/OpenMPT/mptrack/Vstplug.cpp =================================================================== --- trunk/OpenMPT/mptrack/Vstplug.cpp 2009-12-25 12:00:26 UTC (rev 450) +++ trunk/OpenMPT/mptrack/Vstplug.cpp 2009-12-28 02:57:57 UTC (rev 451) @@ -669,7 +669,7 @@ pModDoc->RecordParamChange(pVstPlugin->GetSlot(), index); } - if (pModDoc && CMainFrame::GetInputHandler()->ShiftPressed() && pVstPlugin->GetEditor() && pVstPlugin->GetEditor()->m_hWnd) + if (pModDoc && CMainFrame::GetInputHandler()->ShiftPressed() && pVstPlugin->GetEditor() && (pVstPlugin->GetEditor()->m_hWnd == ::GetForegroundWindow())) { CMainFrame::GetInputHandler()->SetModifierMask(0); // Make sure that the dialog will open only once. CAbstractVstEditor *pVstEditor = pVstPlugin->GetEditor(); Modified: trunk/OpenMPT/soundlib/Snd_fx.cpp =================================================================== --- trunk/OpenMPT/soundlib/Snd_fx.cpp 2009-12-25 12:00:26 UTC (rev 450) +++ trunk/OpenMPT/soundlib/Snd_fx.cpp 2009-12-28 02:57:57 UTC (rev 451) @@ -777,6 +777,7 @@ pChn->nResSwing = pChn->nCutSwing = 0; if (pIns) { + if(IsCompatibleMode(TRK_IMPULSETRACKER)) pChn->nNNA = pIns->nNNA; if (!(pIns->VolEnv.dwFlags & ENV_CARRY)) pChn->nVolEnvPosition = 0; if (!(pIns->PanEnv.dwFlags & ENV_CARRY)) pChn->nPanEnvPosition = 0; if (!(pIns->PitchEnv.dwFlags & ENV_CARRY)) pChn->nPitchEnvPosition = 0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |