[ui] fix log no longer automatically scrolling to the last line

* Introduced in 369a392af0 because, of course when Microsoft has a
  call that goes (###, param1, param2) they define a macro for it that goes (param2, param1)...
This commit is contained in:
Pete Batard 2017-08-11 11:47:27 +01:00
parent 3a150ddeda
commit 65f5ccd28b
2 changed files with 6 additions and 6 deletions

View file

@ -73,7 +73,7 @@ void _uprintf(const char *format, ...)
Edit_ReplaceSel(hLog, wbuf);
// Make sure the message scrolls into view
// (Or see code commented in LogProc:WM_SHOWWINDOW for a less forceful scroll)
Edit_Scroll(hLog, 0, Edit_GetLineCount(hLog));
Edit_Scroll(hLog, Edit_GetLineCount(hLog), 0);
}
free(wbuf);
}