gui/timeosd: rewrite based on infoclock implementation

This commit is contained in:
martii
2013-12-17 00:11:43 +01:00
committed by svenhoefer
parent 27acdadf30
commit 1c53781218
7 changed files with 145 additions and 138 deletions

View File

@@ -595,6 +595,7 @@ void CMoviePlayerGui::PlayFile(void)
if ((playstate >= CMoviePlayerGui::PLAY) && (timeshift || (playstate != CMoviePlayerGui::PAUSE))) {
if(playback->GetPosition(position, duration)) {
FileTime.update(position, duration);
if(duration > 100)
file_prozent = (unsigned char) (position / (duration / 100));
#if HAVE_TRIPLEDRAGON