* * rct2: 0x006E77A1 */
| 178 | * rct2: 0x006E77A1 |
| 179 | */ |
| 180 | void WindowUpdateAll() |
| 181 | { |
| 182 | WindowCullDead(); |
| 183 | |
| 184 | // Periodic update happens every second so 40 ticks. |
| 185 | if (gCurrentRealTimeTicks >= gWindowUpdateTicks) |
| 186 | { |
| 187 | gWindowUpdateTicks = gCurrentRealTimeTicks + kGameUpdateFPS; |
| 188 | |
| 189 | WindowVisitEach([](WindowBase* w) { w->onPeriodicUpdate(); }); |
| 190 | } |
| 191 | |
| 192 | // Border flash invalidation |
| 193 | WindowVisitEach([](WindowBase* w) { |
| 194 | if (w->flashTimer > 0) |
| 195 | { |
| 196 | w->flashTimer--; |
| 197 | if (w->flashTimer == 0) |
| 198 | { |
| 199 | w->invalidate(); |
| 200 | } |
| 201 | } |
| 202 | }); |
| 203 | |
| 204 | auto windowManager = Ui::GetWindowManager(); |
| 205 | windowManager->UpdateMouseWheel(); |
| 206 | |
| 207 | WindowUpdateVisibilities(); |
| 208 | } |
| 209 | |
| 210 | void WindowNotifyLanguageChange() |
| 211 | { |
no test coverage detected