mirror of
https://github.com/RetroPie/EmulationStation.git
synced 2025-04-02 10:41:48 -04:00
Compare commits
2 commits
afcc5edd4e
...
084bfc2cb5
Author | SHA1 | Date | |
---|---|---|---|
|
084bfc2cb5 | ||
|
4d59cdc860 |
1 changed files with 13 additions and 6 deletions
|
@ -86,6 +86,7 @@ private:
|
|||
bool mLastRowPartial;
|
||||
Vector2f mAutoLayout;
|
||||
float mAutoLayoutZoom;
|
||||
int mLastScrollTier;
|
||||
|
||||
Vector4f mPadding;
|
||||
Vector2f mMargin;
|
||||
|
@ -119,6 +120,7 @@ ImageGridComponent<T>::ImageGridComponent(Window* window) : IList<ImageGridData,
|
|||
mAutoLayout = Vector2f::Zero();
|
||||
mAutoLayoutZoom = 1.0;
|
||||
|
||||
mLastScrollTier = 0;
|
||||
mStartPosition = 0;
|
||||
|
||||
mEntriesDirty = true;
|
||||
|
@ -580,10 +582,12 @@ void ImageGridComponent<T>::updateTiles(bool allowAnimation, bool updateSelected
|
|||
if (!mTiles.size())
|
||||
return;
|
||||
|
||||
// Stop updating the tiles at highest scroll speed
|
||||
if (mScrollTier == 3)
|
||||
{
|
||||
for (int ti = 0; ti < (int)mTiles.size(); ti++)
|
||||
// Stop updating the tiles at highest scroll speed
|
||||
if (mLastScrollTier != 3)
|
||||
{
|
||||
for (int ti = 0; ti < (int) mTiles.size(); ti++)
|
||||
{
|
||||
std::shared_ptr<GridTileComponent> tile = mTiles.at(ti);
|
||||
|
||||
|
@ -591,8 +595,11 @@ void ImageGridComponent<T>::updateTiles(bool allowAnimation, bool updateSelected
|
|||
tile->setImage(mDefaultGameTexture);
|
||||
tile->setVisible(false);
|
||||
}
|
||||
}
|
||||
mLastScrollTier = mScrollTier;
|
||||
return;
|
||||
}
|
||||
mLastScrollTier = mScrollTier;
|
||||
|
||||
// Temporary store previous textures so they can't be unloaded
|
||||
std::vector<std::shared_ptr<TextureResource>> previousTextures;
|
||||
|
|
Loading…
Add table
Reference in a new issue