summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/chat/log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Scriver/src/chat/log.cpp')
-rw-r--r--plugins/Scriver/src/chat/log.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Scriver/src/chat/log.cpp b/plugins/Scriver/src/chat/log.cpp
index 87cb9fc8f1..02ba38a147 100644
--- a/plugins/Scriver/src/chat/log.cpp
+++ b/plugins/Scriver/src/chat/log.cpp
@@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define EM_GETSCROLLPOS (WM_USER+221)
#endif
-void CChatRoomDlg::Log_StreamInEvent(LOGINFO* lin, BOOL bRedraw)
+void CChatRoomDlg::StreamInEvents(LOGINFO* lin, bool bRedraw)
{
if (m_hwnd == nullptr || lin == nullptr || m_si == nullptr)
return;
@@ -102,7 +102,7 @@ void CChatRoomDlg::Log_StreamInEvent(LOGINFO* lin, BOOL bRedraw)
// scroll log to bottom if the log was previously scrolled to bottom, else restore old position
if (bRedraw || (UINT)scroll.nPos >= (UINT)scroll.nMax - scroll.nPage - 5 || scroll.nMax - scroll.nMin - scroll.nPage < 50)
- SendMessage(GetParent(m_log.GetHwnd()), GC_SCROLLTOBOTTOM, 0, 0);
+ ScrollToBottom();
else
m_log.SendMsg(EM_SETSCROLLPOS, 0, (LPARAM)&point);