Fix off-by-two sign error in determining how many songs are not visible in the list.
Also, never show "1 more...", just show the song itself instead. One of those bugs that's irked me for awhile that I think I'm the only one on the planet who even noticed...
This commit is contained in:
@@ -50,9 +50,10 @@ void MusicList::AddSongsToGroup(const CArray<Song*,Song*> &Songs)
|
||||
if( iIndex >= Songs.GetSize() )
|
||||
continue;
|
||||
|
||||
if( c == TITLES_COLUMNS-1 && r == TITLES_ROWS-1 )
|
||||
int iSongsLen = Songs.GetSize();
|
||||
if( (c == TITLES_COLUMNS-1) && (r == TITLES_ROWS-1) && (iSongsLen != TITLES_COLUMNS*TITLES_ROWS) )
|
||||
{
|
||||
sText += ssprintf( "%d more.....", Songs.GetSize() - TITLES_COLUMNS * TITLES_ROWS - 1 );
|
||||
sText += ssprintf( "%d more.....", iSongsLen - TITLES_COLUMNS * TITLES_ROWS + 1 );
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user