mirror of
https://github.com/RetroPie/EmulationStation.git
synced 2025-04-02 10:41:48 -04:00
Compare commits
4 commits
908188f8e5
...
084bfc2cb5
Author | SHA1 | Date | |
---|---|---|---|
|
084bfc2cb5 | ||
|
81c62c97ee | ||
|
75c01f73ab | ||
|
4d59cdc860 |
2 changed files with 14 additions and 6 deletions
|
@ -180,6 +180,7 @@ bool parseArgs(int argc, char* argv[])
|
|||
"--screensize WIDTH HEIGHT for a canvas smaller than the full resolution,\n"
|
||||
" or if rotating into portrait mode\n"
|
||||
"--screenoffset X Y move the canvas by x,y pixels\n"
|
||||
"--fullscreen-borderless borderless fullscreen window\n"
|
||||
"--windowed not fullscreen, should be used with --resolution\n"
|
||||
"\nGame and settings visibility in ES and behaviour of ES:\n"
|
||||
"--force-disable-filters force the UI to ignore applied filters on\n"
|
||||
|
|
|
@ -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,19 +582,24 @@ 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)
|
||||
{
|
||||
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->setImage(mDefaultGameTexture);
|
||||
tile->setVisible(false);
|
||||
tile->setSelected(false);
|
||||
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