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