gui/timeosd: rewrite based on infoclock implementation

Origin commit data
------------------
Commit: 1c53781218
Author: martii <m4rtii@gmx.de>
Date: 2013-12-17 (Tue, 17 Dec 2013)
This commit is contained in:
martii
2013-12-17 00:11:43 +01:00
committed by vanhofen
parent 3d56332168
commit 8ce5ae5e9b
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