|
From: Peque <ms...@us...> - 2009-12-24 16:26:57
|
Module: performous
Branch: master
Commit: e4f316b0a2c66362a6c4194f2e59161f510c8819
Author: Miguel Sánchez de León Peque <msd...@gm...>
Date: Thu Dec 24 17:26:07 2009 +0100
Filter and order separated in two lines in screen_songs
---
game/screen_songs.cc | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/game/screen_songs.cc b/game/screen_songs.cc
index 9e4439d..4c2aa42 100644
--- a/game/screen_songs.cc
+++ b/game/screen_songs.cc
@@ -187,7 +187,8 @@ void ScreenSongs::draw() {
Song& song = m_songs.current();
// Format the song information text
oss_song << song.title << '\n' << song.artist;
- oss_order << (m_search.text.empty() ? m_songs.sortDesc() : m_search.text) << '\n';
+ oss_order << "filter: " << (m_search.text.empty() ? "none" : m_search.text) << '\n';
+ oss_order << m_songs.sortDesc() << '\n';
oss_order << "(" << m_songs.currentId() + 1 << "/" << m_songs.size() << ")";
double spos = m_songs.currentPosition(); // This needs to be polled to run the animation
if (!m_jukebox) {
@@ -314,6 +315,6 @@ void ScreenSongs::draw() {
// Force reload of data
m_playing.clear();
}
- } else if (!m_audio.isPaused() && m_playTimer.get() > IDLE_TIMEOUT) m_songs.random(); // Switch if song hasn't changed for IDLE_TIMEOUT seconds
+ } else if (!m_audio.isPaused() && m_playTimer.get() > IDLE_TIMEOUT) m_songs.advance(1); // Switch if song hasn't changed for IDLE_TIMEOUT seconds
}
|