| 764 | } |
| 765 | |
| 766 | void CGameConsole::CInstance::PrintLine(const char *pLine, int Len, ColorRGBA PrintColor) |
| 767 | { |
| 768 | // We must ensure that no log messages are printed while owning |
| 769 | // m_BacklogPendingLock or this will result in a dead lock. |
| 770 | const CLockScope LockScope(m_BacklogPendingLock); |
| 771 | CBacklogEntry *pEntry = m_BacklogPending.Allocate(sizeof(CBacklogEntry) + Len); |
| 772 | pEntry->m_YOffset = -1.0f; |
| 773 | pEntry->m_PrintColor = PrintColor; |
| 774 | pEntry->m_Length = Len; |
| 775 | pEntry->m_LineCount = -1; |
| 776 | str_copy(pEntry->m_aText, pLine, Len + 1); |
| 777 | } |
| 778 | |
| 779 | int CGameConsole::CInstance::GetLinesToScroll(int Direction, int LinesToScroll) |
| 780 | { |
no test coverage detected