mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 16:15:39 +00:00
Merge pull request #416 from Koerty/grid-fix-calcGridDimension
Fix calcGridDimension being called before mScrollDirection
This commit is contained in:
commit
6902ac2cb8
|
@ -85,9 +85,9 @@ ImageGridComponent<T>::ImageGridComponent(Window* window) : IList<ImageGridData,
|
||||||
mMargin = screen * 0.07f;
|
mMargin = screen * 0.07f;
|
||||||
mTileSize = GridTileComponent::getDefaultTileSize();
|
mTileSize = GridTileComponent::getDefaultTileSize();
|
||||||
|
|
||||||
calcGridDimension();
|
|
||||||
|
|
||||||
mScrollDirection = SCROLL_VERTICALLY;
|
mScrollDirection = SCROLL_VERTICALLY;
|
||||||
|
|
||||||
|
calcGridDimension();
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
|
Loading…
Reference in a new issue