From: <sv...@op...> - 2025-05-08 09:50:53
|
Author: sagamusix Date: Thu May 8 11:50:39 2025 New Revision: 23162 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=23162 Log: [Fix] MOD: Automatic hiding of volume column was broken (https://bugs.openmpt.org/view.php?id=1884). Modified: trunk/OpenMPT/soundlib/Load_mod.cpp trunk/OpenMPT/test/test.cpp Modified: trunk/OpenMPT/soundlib/Load_mod.cpp ============================================================================== --- trunk/OpenMPT/soundlib/Load_mod.cpp Sun May 4 20:45:19 2025 (r23161) +++ trunk/OpenMPT/soundlib/Load_mod.cpp Thu May 8 11:50:39 2025 (r23162) @@ -298,7 +298,6 @@ } InitializeGlobals(MOD_TYPE_MOD, modMagicResult.numChannels); - m_SongFlags.set(SONG_FORMAT_NO_VOLCOL); bool isNoiseTracker = modMagicResult.isNoiseTracker; bool isStartrekker = modMagicResult.isStartrekker; @@ -432,7 +431,7 @@ // is the maximum possible sample pre-amp without getting distortion (Compatible mix levels given). // The more channels we have, the less likely it is that all of them are used at the same time, though, so cap at 32... m_nSamplePreAmp = Clamp(256 / GetNumChannels(), 32, 128); - m_SongFlags.reset(); // SONG_ISAMIGA will be set conditionally + m_SongFlags = SONG_FORMAT_NO_VOLCOL; // SONG_ISAMIGA will be set conditionally // Setup channel pan positions and volume SetupMODPanning(); Modified: trunk/OpenMPT/test/test.cpp ============================================================================== --- trunk/OpenMPT/test/test.cpp Sun May 4 20:45:19 2025 (r23161) +++ trunk/OpenMPT/test/test.cpp Thu May 8 11:50:39 2025 (r23162) @@ -3473,7 +3473,7 @@ { // Global Variables VERIFY_EQUAL_NONCONT(sndFile.GetTitle(), "MOD_Test___________X"); - VERIFY_EQUAL_NONCONT(sndFile.m_SongFlags, SONG_PT_MODE | SONG_AMIGALIMITS | SONG_ISAMIGA); + VERIFY_EQUAL_NONCONT(sndFile.m_SongFlags, SONG_PT_MODE | SONG_AMIGALIMITS | SONG_ISAMIGA | SONG_FORMAT_NO_VOLCOL); VERIFY_EQUAL_NONCONT(sndFile.GetMixLevels(), MixLevels::Compatible); VERIFY_EQUAL_NONCONT(sndFile.m_nTempoMode, TempoMode::Classic); VERIFY_EQUAL_NONCONT(sndFile.GetNumChannels(), 4); |