From 3fc64ed01d07723b5f317078da1e23149de7333f Mon Sep 17 00:00:00 2001 From: Don Honerbrink Date: Thu, 6 Aug 2015 09:18:04 -0500 Subject: [PATCH] Set viewInfo when allocating tweens --- RetroFE/Source/Graphics/Component/ScrollingList.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/RetroFE/Source/Graphics/Component/ScrollingList.cpp b/RetroFE/Source/Graphics/Component/ScrollingList.cpp index 99dbf3e..b622429 100644 --- a/RetroFE/Source/Graphics/Component/ScrollingList.cpp +++ b/RetroFE/Source/Graphics/Component/ScrollingList.cpp @@ -243,6 +243,10 @@ void ScrollingList::click(double nextScrollTime) deallocateTexture(componentIndex_); allocateTexture(componentIndex_, i); + + Component *c = components_.at(componentIndex_); + ViewInfo *v = scrollPoints_->at(0); + resetTweens(c, tweenPoints_->at(componentIndex_), v, v, 0); } else if(currentScrollDirection_ == ScrollDirectionForward) { @@ -253,6 +257,10 @@ void ScrollingList::click(double nextScrollTime) deallocateTexture(componentIndex_); allocateTexture(componentIndex_, i); + Component *c = components_.at(componentIndex_); + ViewInfo *v = scrollPoints_->back(); + resetTweens(c, tweenPoints_->at(componentIndex_), v, v, 0); + componentIndex_ = loopIncrement(componentIndex_, 1, components_.size()); } }