From b556348e314dde816c2cee8b3fcf468629c3712d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 3 Feb 2006 04:36:48 +0000 Subject: [PATCH] being a bit more explicit than usual, since the stuff in this screen is complicated --- stepmania/src/ScreenOptions.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenOptions.cpp b/stepmania/src/ScreenOptions.cpp index d8fe9a8460..036442d6f9 100644 --- a/stepmania/src/ScreenOptions.cpp +++ b/stepmania/src/ScreenOptions.cpp @@ -1138,6 +1138,9 @@ void ScreenOptions::MoveRowRelative( PlayerNumber pn, int iDir, bool Repeat ) if( m_InputMode == INPUTMODE_INDIVIDUAL && p != pn ) continue; // skip + // + // Update m_iCurrentRow. + // int r = m_iCurrentRow[p] + iDir; if( Repeat && ( r == -1 || r == (int) m_pRows.size() ) ) continue; // don't wrap while repeating @@ -1150,8 +1153,10 @@ void ScreenOptions::MoveRowRelative( PlayerNumber pn, int iDir, bool Repeat ) m_iCurrentRow[p] = r; ASSERT( r >= 0 && r < (int)m_pRows.size() ); + // + // We've moved vertically. In FIVE_KEY, keep the selection in the row near the focus. + // OptionRow &row = *m_pRows[r]; - switch( m_OptionsNavigation ) { case NAV_TOGGLE_FIVE_KEY: