|
From: Tapio V. <aa...@us...> - 2012-02-20 17:24:02
|
Author: Lasse Karkkainen <tro...@tr...>
Date: Mon Feb 20 06:50:00 2012 +0200
Draw one more cover (outside the screen) on song browser to avoid seeing the loading of images when browsing.
---
game/screen_songs.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/screen_songs.cc b/game/screen_songs.cc
index 64d621c..95a5d44 100644
--- a/game/screen_songs.cc
+++ b/game/screen_songs.cc
@@ -256,7 +256,7 @@ void ScreenSongs::drawCovers() {
std::size_t ss = m_songs.size();
int baseidx = spos + 1.5; --baseidx; // Round correctly
double shift = spos - baseidx;
- for (int i = -2; i < 5; ++i) {
+ for (int i = -2; i < 6; ++i) {
if (baseidx + i < 0 || baseidx + i >= int(ss)) continue;
Song& song = m_songs[baseidx + i];
Surface& s = getCover(song);
|