Changed console character to a _ since the vertical line glyph didn't seem to be available on OS X.

This was SVN commit r5415.
This commit is contained in:
Matei 2007-10-13 18:22:20 +00:00
parent 8a5ba90c53
commit ddffdba2c3
4 changed files with 9 additions and 9 deletions

View File

@ -951,9 +951,9 @@ void CInput::Draw()
if (i != (int)it->m_ListOfX.size() &&
it->m_ListStart + i == m_iBufferPos)
{
// selecting only one, then we need only to draw a vertical line glyph.
// selecting only one, then we need only to draw a cursor.
glPushMatrix();
glwprintf(L"%lc", 0xFE33);
glwprintf(L"_");
glPopMatrix();
}
@ -981,7 +981,7 @@ void CInput::Draw()
if (it->m_ListStart + (int)it->m_ListOfX.size() == m_iBufferPos)
{
glColor4f(color.r, color.g, color.b, color.a);
glwprintf(L"%lc", 0xFE33);
glwprintf(L"_");
if (using_selected_color)
{

View File

@ -246,8 +246,10 @@ void glvwprintf(const wchar_t* fmt, va_list args)
const int buf_size = 1024;
wchar_t buf[buf_size];
if(vswprintf(buf, buf_size-1, fmt, args) < 0)
debug_printf("glwprintf failed (buffer size exceeded?)\n");
int ret = vswprintf(buf, buf_size-1, fmt, args);
if(ret < 0) {
debug_printf("glwprintf failed (buffer size exceeded?) - return value %d, errno %d\n", ret, errno);
}
// Make sure there's always null termination
buf[buf_size-1] = 0;

View File

@ -242,7 +242,6 @@ void CMessageSocket::StartReadHeader()
m_pRdBuffer=(u8 *)malloc(m_RdBufferSize);
}
m_ReadingData=false;
printf("CMessageSocket::StartReadHeader(): Trying to read %u\n", HEADER_LENGTH);
PS_RESULT res=Read(m_pRdBuffer, HEADER_LENGTH);
if (res != PS_OK)
{

View File

@ -322,9 +322,8 @@ void CConsole::DrawCursor(void)
// Slightly translucent yellow
glColor4f(1.0f, 1.0f, 0.0f, 0.8f);
// U+FE33: PRESENTATION FORM FOR VERTICAL LOW LINE
// (sort of like a | which is aligned to the left of most characters)
glwprintf(L"%lc", 0xFE33);
// Cursor character is chosen to be an underscore
glwprintf(L"_");
// Revert to the standard text colour
glColor3f(1.0f, 1.0f, 1.0f);