From 7d1d1bfe93106fb6be1fcd24943b9b80961650d5 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Fri, 15 Aug 2008 04:08:34 +0000 Subject: [PATCH] fix overlapping text, wrong song counts --- stepmania/src/ScreenBookkeeping.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/stepmania/src/ScreenBookkeeping.cpp b/stepmania/src/ScreenBookkeeping.cpp index 74b0fd77a3..17f44b7fb4 100644 --- a/stepmania/src/ScreenBookkeeping.cpp +++ b/stepmania/src/ScreenBookkeeping.cpp @@ -137,17 +137,21 @@ void ScreenBookkeeping::ChangeView( View newView ) const int iSongPerCol = 15; + int iSongIndex = 0; for( int i=0; iGetSongNumTimesPlayed( pSong ); - s += ssprintf("%4d",iCount) + " " + pSong->GetDisplayFullTitle() + "\n"; + RString sTitle = ssprintf("%4d",iCount) + " " + pSong->GetDisplayFullTitle(); + if( sTitle.length() > 22 ) + sTitle = sTitle.Left(20) + "..."; + s += sTitle + "\n"; + iSongIndex++; } } m_textData[i].SetText( s );