From 7540f787ddc84e4e50a5dfb80b2217d32b02dafc Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Tue, 30 May 2006 05:09:39 +0000 Subject: [PATCH] fix blinking cursor w/ formatted answer --- stepmania/src/ScreenTextEntry.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenTextEntry.cpp b/stepmania/src/ScreenTextEntry.cpp index 6c5ade3f84..fedbb13551 100644 --- a/stepmania/src/ScreenTextEntry.cpp +++ b/stepmania/src/ScreenTextEntry.cpp @@ -139,10 +139,11 @@ void ScreenTextEntry::UpdateAnswerText() else s = WStringToRString(m_sAnswer); + bool bAnswerFull = (int) s.length() >= g_iMaxInputLength; + if( g_pFormatAnswerForDisplay ) s = g_pFormatAnswerForDisplay( s ); - bool bAnswerFull = (int) s.length() >= g_iMaxInputLength; if( m_bShowAnswerCaret && !bAnswerFull ) s += '_'; else