mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Hopefully fix trying to showing too many entries in TextListComponent.
This commit is contained in:
parent
c7a150046a
commit
b76413137e
|
@ -125,9 +125,8 @@ void TextListComponent<T>::render(const Eigen::Affine3f& parentTrans)
|
|||
int startEntry = 0;
|
||||
|
||||
//number of entries that can fit on the screen simultaniously
|
||||
int screenCount = (Renderer::getScreenHeight() - cutoff) / entrySize;
|
||||
screenCount -= 1;
|
||||
|
||||
int screenCount = (int)mSize.y() / entrySize;
|
||||
|
||||
if((int)mRowVector.size() >= screenCount)
|
||||
{
|
||||
startEntry = mSelection - (int)(screenCount * 0.5);
|
||||
|
|
Loading…
Reference in a new issue