末尾を表示中のみ自動スクロールするように

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@307 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
N2614 2011-06-03 02:30:54 +00:00
parent 7bde918fe3
commit 6904d77e61

View File

@ -74,8 +74,9 @@ void LogConsole::AddText(const char* fmt, ::std::va_list arg)
AddWrapedText(str.substr(addedText, m_Width).c_str());
m_LineNum++;
// 画面領域の末尾を描画中 かつ
// 画面領域以上追加したら末尾にスクロールする
if(m_LineNum > m_Height)
if(m_CurrentViewLine == (m_LineNum - m_Height - 1) && m_LineNum > m_Height)
{
ScrollToEnd();
}