mb.cpp: more accurate percentages

Origin commit data
------------------
Branch: ni/coolstream
Commit: 7697d20607
Author: GetAway <get-away@t-online.de>
Date: 2019-05-25 (Sat, 25 May 2019)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
GetAway
2019-05-25 16:56:49 +02:00
committed by vanhofen
parent a06afe578c
commit fc91ee0d67

View File

@@ -4017,7 +4017,9 @@ bool CMovieBrowser::getMovieInfoItem(MI_MOVIE_INFO& movie_info, MB_INFO_ITEM ite
*item_string = "";
if (movie_info.bookmarks.lastPlayStop > 0 && movie_info.length > 0)
{
int pos = movie_info.bookmarks.lastPlayStop/60 * 100 / movie_info.length;
int pos = movie_info.bookmarks.lastPlayStop * 100 / (movie_info.length * 60);
if (pos > 100)
pos = 100;
*item_string = to_string(pos);
}
break;