This commit is contained in:
Glenn Maynard
2005-12-21 07:42:52 +00:00
parent 87c3fd131a
commit 5e2806c5f7
+4 -7
View File
@@ -181,14 +181,11 @@ void ScreenTextEntry::UpdateKeyboardText()
void ScreenTextEntry::UpdateAnswerText()
{
CString s = WStringToRString(m_sAnswer);
CString s;
if( g_bPassword )
{
int len = s.GetLength();
s = "";
for( int i=0; i<len; ++i )
s += '*';
}
s = RString( m_sAnswer.size(), '*' );
else
s = WStringToRString(m_sAnswer);
bool bAnswerFull = (int) s.length() >= g_iMaxInputLength;
if( m_bShowAnswerCaret && !bAnswerFull )