mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-23 15:18:51 +01:00
Scrolling now works. ReloadableImages are not always updating properly from component states.
This commit is contained in:
parent
9330e85f31
commit
c20ac31fea
@ -36,7 +36,7 @@
|
||||
#include <SDL2/SDL_image.h>
|
||||
#include <sstream>
|
||||
#include <cctype>
|
||||
|
||||
#include <iomanip>
|
||||
|
||||
//todo: remove coupling from configuration data (if possible)
|
||||
ScrollingList::ScrollingList(Configuration &c,
|
||||
@ -246,9 +246,9 @@ void ScrollingList::click(double nextScrollTime)
|
||||
}
|
||||
else if(currentScrollDirection_ == ScrollDirectionForward)
|
||||
{
|
||||
unsigned int itemIncrement = loopIncrement(itemIndex_, scrollPoints_->size(), items_->size());
|
||||
itemIndex_ = loopIncrement(itemIndex_, 1, items_->size());
|
||||
Item *i = items_->at(itemIndex_);
|
||||
|
||||
Item *i = items_->at(itemIncrement);
|
||||
|
||||
deallocateTexture(componentIndex_);
|
||||
allocateTexture(componentIndex_, i);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user