From: <sv...@op...> - 2024-06-28 23:07:42
|
Author: sagamusix Date: Sat Jun 29 01:07:30 2024 New Revision: 21104 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21104 Log: [Fix] Note Properties: S8x/E8x doesn't really have a center point, so do not show Center for S88/E88 (https://bugs.openmpt.org/view.php?id=1796). Modified: trunk/OpenMPT/mptrack/EffectInfo.cpp Modified: trunk/OpenMPT/mptrack/EffectInfo.cpp ============================================================================== --- trunk/OpenMPT/mptrack/EffectInfo.cpp Sat Jun 29 01:01:45 2024 (r21103) +++ trunk/OpenMPT/mptrack/EffectInfo.cpp Sat Jun 29 01:07:30 2024 (r21104) @@ -804,7 +804,7 @@ break; case 0x80: // panning - s = FormatPanning(param & 0x0F, 8).c_str(); + s = FormatPanning(param & 0x0F, (param & 0x0F) < 8 ? 8 : 7).c_str(); break; case 0xA0: // high offset @@ -897,7 +897,7 @@ s += _T(" times"); break; case 0x80: // panning - s = FormatPanning(param & 0x0F, 8).c_str(); + s = FormatPanning(param & 0x0F, (param & 0x0F) < 8 ? 8 : 7).c_str(); break; case 0x90: // retrigger s.Format(_T("speed %d"), param & 0x0F); |