0x004C8A36
| 357 | |
| 358 | // 0x004C8A36 |
| 359 | static void hTrackLeft(Ui::Window& window, const size_t scrollAreaIndex, const WidgetIndex_t widgetIndex) |
| 360 | { |
| 361 | int16_t trackWidth = window.widgets[widgetIndex].width() - 2; |
| 362 | if (window.scrollAreas[scrollAreaIndex].hasFlags(ScrollFlags::vscrollbarVisible)) |
| 363 | { |
| 364 | trackWidth -= kScrollbarSize; |
| 365 | } |
| 366 | window.scrollAreas[scrollAreaIndex].contentOffsetX = std::max(window.scrollAreas[scrollAreaIndex].contentOffsetX - trackWidth, 0); |
| 367 | ScrollView::updateThumbs(window, widgetIndex); |
| 368 | WindowManager::invalidateWidget(window.type, window.number, widgetIndex); |
| 369 | } |
| 370 | |
| 371 | // 0x004C8AA6 |
| 372 | static void hTrackRight(Ui::Window& window, const size_t scrollAreaIndex, const WidgetIndex_t widgetIndex) |
no test coverage detected