| 397 | } |
| 398 | |
| 399 | void verticalNudgeDown(Ui::Window& window, const size_t scrollAreaIndex, const WidgetIndex_t widgetIndex) |
| 400 | { |
| 401 | int16_t trackHeight = window.widgets[widgetIndex].height() - 2; |
| 402 | if (window.scrollAreas[scrollAreaIndex].hasFlags(ScrollFlags::hscrollbarVisible)) |
| 403 | { |
| 404 | trackHeight -= kScrollbarSize; |
| 405 | } |
| 406 | int16_t widgetContentHeight = std::max(window.scrollAreas[scrollAreaIndex].contentHeight - trackHeight, 0); |
| 407 | window.scrollAreas[scrollAreaIndex].contentOffsetY = std::min<int16_t>(window.scrollAreas[scrollAreaIndex].contentOffsetY + kButtonClickStep, widgetContentHeight); |
| 408 | ScrollView::updateThumbs(window, widgetIndex); |
| 409 | WindowManager::invalidateWidget(window.type, window.number, widgetIndex); |
| 410 | } |
| 411 | |
| 412 | // 0x004C8B85 |
| 413 | static void vButtonBottom(Ui::Window& window, const size_t scrollAreaIndex, const WidgetIndex_t widgetIndex) |
no test coverage detected