diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2014-02-18 14:07:36 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2014-02-18 14:07:36 +0100 |
commit | 3736508d95f55c1dfd0e7eb5eb7ee87cb2e9e7f3 (patch) | |
tree | 3cf76fb95738cb01cef9d22b02dcae31c2db4b91 /skins.h | |
parent | 058177d24c3c3b77e9e59975c82a0cdf5568c04f (diff) | |
download | vdr-3736508d95f55c1dfd0e7eb5eb7ee87cb2e9e7f3.tar.gz vdr-3736508d95f55c1dfd0e7eb5eb7ee87cb2e9e7f3.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 2.9 2012/12/21 11:09:13 kls Exp $ + * $Id: skins.h 2.9.1.1 2014/02/18 14:06:50 kls Exp $ */ #ifndef __SKINS_H @@ -264,7 +264,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); |