| 137 | } |
| 138 | |
| 139 | void LinnstrumentControl::SetGridColor(int x, int y, LinnstrumentColor color, bool ignoreRow /*= false*/) |
| 140 | { |
| 141 | if (x < kCols && y < kRows) |
| 142 | { |
| 143 | if (color != mGridColorState[x + y * kCols]) |
| 144 | { |
| 145 | if (!ignoreRow) |
| 146 | mDevice.SendCC(21, y); |
| 147 | mDevice.SendCC(20, x + 1); |
| 148 | mDevice.SendCC(22, color); |
| 149 | mGridColorState[x + y * kCols] = color; |
| 150 | } |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | LinnstrumentControl::LinnstrumentColor LinnstrumentControl::GetDesiredGridColor(int x, int y) |
| 155 | { |