From 0f33586397f16c596fc831e93ceee9f32182e8d5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 14 Jan 2006 09:12:55 +0000 Subject: [PATCH] We always handle the case where m_Underline[pn] is empty, since SHOW_UNDERLINES may be false. So, don't add the underline, hide it and then special case not un-hiding it; just don't add it. --- stepmania/src/OptionRow.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/stepmania/src/OptionRow.cpp b/stepmania/src/OptionRow.cpp index 109e53d7f6..18c4ff98eb 100644 --- a/stepmania/src/OptionRow.cpp +++ b/stepmania/src/OptionRow.cpp @@ -332,7 +332,7 @@ void OptionRow::InitText() } // init underlines - if( m_pParentType->SHOW_UNDERLINES ) + if( m_pParentType->SHOW_UNDERLINES && GetRowType() != OptionRow::RowType_Exit ) { FOREACH_PlayerNumber( p ) { @@ -344,8 +344,6 @@ void OptionRow::InitText() GetWidthXY( p, 0, iWidth, iX, iY ); pCursor->SetX( float(iX) ); pCursor->SetWidth( float(iWidth) ); - if( GetRowType() == OptionRow::RowType_Exit ) - pCursor->SetHidden( true ); } } break; @@ -509,9 +507,6 @@ void OptionRow::LoadExit() void OptionRow::PositionUnderlines( PlayerNumber pn ) { - if( m_RowType == RowType_Exit ) - return; - vector &vpUnderlines = m_Underline[pn]; if( vpUnderlines.empty() ) return;