diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2014-02-18 13:48:05 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2014-02-18 13:48:05 +0100 |
commit | 585f622886690292a1c7432d185d10f8627a722f (patch) | |
tree | e9d7e21296fe7253b1f847686bc17dfcc2c4834a /skins.h | |
parent | 0de69c389993ca0c78c726fe567ae4e155c9a1b9 (diff) | |
download | vdr-585f622886690292a1c7432d185d10f8627a722f.tar.gz vdr-585f622886690292a1c7432d185d10f8627a722f.tar.bz2 |
Fixed the replay progress display for very long recordings
Diffstat (limited to 'skins.h')
-rw-r--r-- | skins.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: skins.h 3.2 2013/11/03 14:07:34 kls Exp $ + * $Id: skins.h 3.3 2014/02/18 13:48:05 kls Exp $ */ #ifndef __SKINS_H @@ -280,7 +280,7 @@ protected: class cProgressBar : public cBitmap { protected: int total; - int Pos(int p) { return p * Width() / total; } + int Pos(int p) { return int(int64_t(p) * Width() / total); } void Mark(int x, bool Start, bool Current, tColor ColorMark, tColor ColorCurrent); public: cProgressBar(int Width, int Height, int Current, int Total, const cMarks *Marks, tColor ColorSeen, tColor ColorRest, tColor ColorSelected, tColor ColorMark, tColor ColorCurrent); |