1
0
forked from 0ad/0ad

Fix #1299 (page up in console doesn't scroll up)

This was SVN commit r11493.
This commit is contained in:
Ykkrosh 2012-04-13 12:15:50 +00:00
parent 2312d1379a
commit 789036fb90

View File

@ -265,7 +265,7 @@ void CConsole::DrawHistory(CTextRenderer& textRenderer)
++Iter)
{
if (i >= m_iMsgHistPos)
textRenderer.Put(9.0f, m_fHeight - (float)m_iFontOffset - (float)m_iFontHeight * i, Iter->c_str());
textRenderer.Put(9.0f, m_fHeight - (float)m_iFontOffset - (float)m_iFontHeight * (i - m_iMsgHistPos + 1), Iter->c_str());
i++;
}