diff --git a/src/ui/listView.cpp b/src/ui/listView.cpp index d69cea5..54858a7 100644 --- a/src/ui/listView.cpp +++ b/src/ui/listView.cpp @@ -64,7 +64,7 @@ ListView::ListView(const irect *contentRect, const vector &items) : _conte _pageIcon = iRect(_contentRect->w - 100, _contentRect->h + _contentRect->y - _footerHeight, 100, _footerHeight, ALIGN_CENTER); _firstPageButton = iRect(_contentRect->x, _contentRect->h + _contentRect->y - _footerHeight, 130, _footerHeight, ALIGN_CENTER); - _lastPageButton = iRect(_contentRect->x + 150, _contentRect->h + _contentRect->y - _footerHeight, 130, _footerHeight, ALIGN_CENTER); + _prevPageButton = iRect(_contentRect->x + 150, _contentRect->h + _contentRect->y - _footerHeight, 130, _footerHeight, ALIGN_CENTER); _nextPageButton = iRect(_contentRect->x + 300, _contentRect->h + _contentRect->y - _footerHeight, 130, _footerHeight, ALIGN_CENTER); drawEntries(); @@ -98,8 +98,8 @@ void ListView::drawFooter() DrawTextRect2(&_pageIcon, footer.c_str()); FillAreaRect(&_firstPageButton, BLACK); DrawTextRect2(&_firstPageButton, "First"); - FillAreaRect(&_lastPageButton, BLACK); - DrawTextRect2(&_lastPageButton, "Last"); + FillAreaRect(&_prevPageButton, BLACK); + DrawTextRect2(&_prevPageButton, "Prev"); FillAreaRect(&_nextPageButton, BLACK); DrawTextRect2(&_nextPageButton, "Next"); } @@ -148,7 +148,7 @@ int ListView::listClicked(int x, int y) { actualizePage(_shownPage + 1); } - else if (IsInRect(x, y, &_lastPageButton)) + else if (IsInRect(x, y, &_prevPageButton)) { actualizePage(_shownPage - 1); } diff --git a/src/ui/listView.h b/src/ui/listView.h index 9266330..04f7534 100644 --- a/src/ui/listView.h +++ b/src/ui/listView.h @@ -85,7 +85,7 @@ private: int _shownPage; irect _pageIcon; irect _nextPageButton; - irect _lastPageButton; + irect _prevPageButton; irect _firstPageButton; int _itemCount = 7; };