reset scrollpad's start position while switching to lyrics/info screens

This commit is contained in:
Andrzej Rybczak
2009-12-27 16:47:51 +01:00
parent 934efd5383
commit 455f729bef
2 changed files with 3 additions and 0 deletions

View File

@@ -126,6 +126,7 @@ void Info::GetSong()
RedrawHeader = 1; RedrawHeader = 1;
itsTitle = "Song info"; itsTitle = "Song info";
w->Clear(); w->Clear();
w->Reset();
PrepareSong(*s); PrepareSong(*s);
w->Window::Clear(); w->Window::Clear();
w->Flush(); w->Flush();
@@ -172,6 +173,7 @@ void Info::GetArtist()
RedrawHeader = 1; RedrawHeader = 1;
itsTitle = "Artist info - " + itsArtist; itsTitle = "Artist info - " + itsArtist;
w->Clear(); w->Clear();
w->Reset();
static_cast<Window &>(*w) << "Fetching artist info..."; static_cast<Window &>(*w) << "Fetching artist info...";
w->Window::Refresh(); w->Window::Refresh();
# ifdef HAVE_PTHREAD_H # ifdef HAVE_PTHREAD_H

View File

@@ -130,6 +130,7 @@ void Lyrics::SwitchTo()
} }
RedrawHeader = 1; RedrawHeader = 1;
w->Clear(); w->Clear();
w->Reset();
# ifdef HAVE_CURL_CURL_H # ifdef HAVE_CURL_CURL_H
static_cast<Window &>(*w) << "Fetching lyrics..."; static_cast<Window &>(*w) << "Fetching lyrics...";
w->Window::Refresh(); w->Window::Refresh();