Fix improper modulus for grid position

This commit is contained in:
Matthias Neeracher 2011-08-29 03:10:21 +02:00
parent 99d3afc833
commit e66a6fa230

View File

@ -239,7 +239,7 @@ void VLVisualFilter::ResetWithKey(int key)
uint16_t VLVisualFilter::operator()(int gridPos, uint16_t visual) uint16_t VLVisualFilter::operator()(int gridPos, uint16_t visual)
{ {
gridPos = (gridPos+60) % 12; gridPos = (gridPos+700) % 7;
visual &= VLNote::kAccidentalsMask; visual &= VLNote::kAccidentalsMask;
if (visual == VLNote::kWantNatural) if (visual == VLNote::kWantNatural)
visual = 0; visual = 0;