0x004C8C0D
| 418 | |
| 419 | // 0x004C8C0D |
| 420 | static void vTrackTop(Ui::Window& window, const size_t scrollAreaIndex, const WidgetIndex_t widgetIndex) |
| 421 | { |
| 422 | int16_t trackHeight = window.widgets[widgetIndex].height() - 2; |
| 423 | if (window.scrollAreas[scrollAreaIndex].hasFlags(ScrollFlags::hscrollbarVisible)) |
| 424 | { |
| 425 | trackHeight -= kScrollbarSize; |
| 426 | } |
| 427 | window.scrollAreas[scrollAreaIndex].contentOffsetY = std::max(window.scrollAreas[scrollAreaIndex].contentOffsetY - trackHeight, 0); |
| 428 | ScrollView::updateThumbs(window, widgetIndex); |
| 429 | WindowManager::invalidateWidget(window.type, window.number, widgetIndex); |
| 430 | } |
| 431 | |
| 432 | // 0x004C8C7D |
| 433 | static void vTrackBottom(Ui::Window& window, const size_t scrollAreaIndex, const WidgetIndex_t widgetIndex) |
no test coverage detected