use int instead of wchar_t; don't want to be limited to 16-bit

This commit is contained in:
Glenn Maynard
2003-01-05 08:11:05 +00:00
parent 8f1d3db15b
commit d46a2ef9de
7 changed files with 44 additions and 40 deletions
+3 -2
View File
@@ -116,7 +116,7 @@ void BitmapText::BuildChars()
for( i=0; i<m_szTextLines.size(); i++ ) // foreach line
{
const wstring &szLine = m_szTextLines[i];
const lstring &szLine = m_szTextLines[i];
const int iLineWidth = m_iLineWidths[i];
int iX;
@@ -185,7 +185,8 @@ void BitmapText::SetText( CString sText )
m_iLineWidths.clear();
m_iLineHeights.clear();
split(CStringToWstring(sText), L"\n", m_szTextLines, false);
lstring s; s.push_back('\n');
split(CStringToLstring(sText), s, m_szTextLines, false);
/* calculate line lengths and widths */
m_iWidestLineWidth = 0;