0x004C8C7D
| 431 | |
| 432 | // 0x004C8C7D |
| 433 | static void vTrackBottom(Ui::Window& window, const size_t scrollAreaIndex, const WidgetIndex_t widgetIndex) |
| 434 | { |
| 435 | int16_t trackHeight = window.widgets[widgetIndex].height() - 2; |
| 436 | if (window.scrollAreas[scrollAreaIndex].hasFlags(ScrollFlags::hscrollbarVisible)) |
| 437 | { |
| 438 | trackHeight -= kScrollbarSize; |
| 439 | } |
| 440 | int16_t widgetContentHeight = std::max(window.scrollAreas[scrollAreaIndex].contentHeight - trackHeight, 0); |
| 441 | window.scrollAreas[scrollAreaIndex].contentOffsetY = std::min<int16_t>(window.scrollAreas[scrollAreaIndex].contentOffsetY + trackHeight, widgetContentHeight); |
| 442 | ScrollView::updateThumbs(window, widgetIndex); |
| 443 | WindowManager::invalidateWidget(window.type, window.number, widgetIndex); |
| 444 | } |
| 445 | |
| 446 | // 0x004C8689 |
| 447 | void scrollLeftBegin(const int16_t x, const int16_t y, Ui::Window& window, Ui::Widget* const widget, const WidgetIndex_t widgetIndex) |
no test coverage detected