Mask visuals

This commit is contained in:
Matthias Neeracher 2011-08-28 23:41:49 +02:00
parent 936660b5e6
commit 18082e9736

View File

@ -240,6 +240,7 @@ void VLVisualFilter::ResetWithKey(int key)
uint16_t VLVisualFilter::operator()(int gridPos, uint16_t visual)
{
gridPos = (gridPos+60) % 12;
visual &= VLNote::kAccidentalsMask;
if (visual == VLNote::kWantNatural)
visual = 0;
if (visual != fState[gridPos]) {