| 109 | } |
| 110 | |
| 111 | void GridModule::UpdateLights() |
| 112 | { |
| 113 | if (!mGridControlTarget) |
| 114 | return; |
| 115 | |
| 116 | for (int x = 0; x < GetCols(); ++x) |
| 117 | { |
| 118 | for (int y = 0; y < GetRows(); ++y) |
| 119 | { |
| 120 | if (mGridControlTarget->GetGridController()) |
| 121 | { |
| 122 | if (mDirectColorMode) |
| 123 | mGridControlTarget->GetGridController()->SetLightDirect(x, y, Get(x, y) * 127); |
| 124 | else |
| 125 | mGridControlTarget->GetGridController()->SetLight(x, y, Get(x, y) > 0 ? kGridColor1Bright : kGridColorOff); |
| 126 | } |
| 127 | } |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | void GridModule::DrawModule() |
| 132 | { |
nothing calls this directly
no test coverage detected