|
From: <sag...@us...> - 2011-07-30 00:50:50
|
Revision: 941
http://modplug.svn.sourceforge.net/modplug/?rev=941&view=rev
Author: saga-games
Date: 2011-07-30 00:50:44 +0000 (Sat, 30 Jul 2011)
Log Message:
-----------
[Mod] Deprecated mod flags are now greyed out on the song properties, unless they are used by the module.
Modified Paths:
--------------
trunk/OpenMPT/mptrack/dlg_misc.cpp
Modified: trunk/OpenMPT/mptrack/dlg_misc.cpp
===================================================================
--- trunk/OpenMPT/mptrack/dlg_misc.cpp 2011-07-30 00:49:19 UTC (rev 940)
+++ trunk/OpenMPT/mptrack/dlg_misc.cpp 2011-07-30 00:50:44 UTC (rev 941)
@@ -223,6 +223,10 @@
CheckDlgButton(IDC_CHK_MIDICCBUG, m_pSndFile->GetModFlag(MSF_MIDICC_BUGEMULATION));
CheckDlgButton(IDC_CHK_OLDRANDOM, m_pSndFile->GetModFlag(MSF_OLDVOLSWING));
+ // Deprecated flags are greyed out if they are not being used.
+ GetDlgItem(IDC_CHK_MIDICCBUG)->EnableWindow(m_pSndFile->GetModFlag(MSF_MIDICC_BUGEMULATION) ? TRUE : FALSE);
+ GetDlgItem(IDC_CHK_OLDRANDOM)->EnableWindow(m_pSndFile->GetModFlag(MSF_OLDVOLSWING) ? TRUE : FALSE);
+
// Mixmode Box
GetDlgItem(IDC_TEXT_MIXMODE)->ShowWindow(XMorITorMPT);
m_PlugMixBox.ShowWindow(XMorITorMPT);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|