simplify
This commit is contained in:
@@ -181,14 +181,11 @@ void ScreenTextEntry::UpdateKeyboardText()
|
|||||||
|
|
||||||
void ScreenTextEntry::UpdateAnswerText()
|
void ScreenTextEntry::UpdateAnswerText()
|
||||||
{
|
{
|
||||||
CString s = WStringToRString(m_sAnswer);
|
CString s;
|
||||||
if( g_bPassword )
|
if( g_bPassword )
|
||||||
{
|
s = RString( m_sAnswer.size(), '*' );
|
||||||
int len = s.GetLength();
|
else
|
||||||
s = "";
|
s = WStringToRString(m_sAnswer);
|
||||||
for( int i=0; i<len; ++i )
|
|
||||||
s += '*';
|
|
||||||
}
|
|
||||||
|
|
||||||
bool bAnswerFull = (int) s.length() >= g_iMaxInputLength;
|
bool bAnswerFull = (int) s.length() >= g_iMaxInputLength;
|
||||||
if( m_bShowAnswerCaret && !bAnswerFull )
|
if( m_bShowAnswerCaret && !bAnswerFull )
|
||||||
|
|||||||
Reference in New Issue
Block a user