only use longchar within fonts

This commit is contained in:
Glenn Maynard
2003-01-28 00:45:01 +00:00
parent 4003ac7ed9
commit ff830fad55
12 changed files with 62 additions and 60 deletions
+3 -3
View File
@@ -163,7 +163,7 @@ void BitmapText::BuildChars()
for( i=0; i<m_szTextLines.size(); i++ ) // foreach line
{
iY += m_pFont->GetHeight();
const lstring &szLine = m_szTextLines[i];
const wstring &szLine = m_szTextLines[i];
const int iLineWidth = m_iLineWidths[i];
int iX;
@@ -232,8 +232,8 @@ void BitmapText::SetText( CString sText )
m_szTextLines.clear();
m_iLineWidths.clear();
lstring s; s+='\n';
split(CStringToLstring(sText), s, m_szTextLines, false);
wstring s; s+=L'\n';
split(CStringToWstring(sText), s, m_szTextLines, false);
BuildChars();
}