Merge branch 'master' into unstable

This commit is contained in:
Aloshi 2013-08-23 11:28:45 -05:00
commit f2689f49a6

View file

@ -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);