summaryrefslogtreecommitdiff
path: root/interface.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-08-07 16:30:52 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-08-07 16:30:52 +0200
commita57bcf4240e4cb212d237dce4560f478b7ecd4f5 (patch)
treebca8184d852ffddf9678c55157b3f92bb706c346 /interface.c
parentf1c2d45c42866f766fc9f65d092393df56521b7a (diff)
downloadvdr-a57bcf4240e4cb212d237dce4560f478b7ecd4f5.tar.gz
vdr-a57bcf4240e4cb212d237dce4560f478b7ecd4f5.tar.bz2
Fixed displaying colored button texts that are too long
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/interface.c b/interface.c
index 03dca06f..e2d83b35 100644
--- a/interface.c
+++ b/interface.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: interface.c 1.39 2001/07/28 14:57:52 kls Exp $
+ * $Id: interface.c 1.40 2001/08/07 16:23:28 kls Exp $
*/
#include "interface.h"
@@ -328,7 +328,7 @@ void cInterface::HelpButton(int Index, const char *Text, eDvbColor FgColor, eDvb
{
if (open && Text) {
const int w = Width() / 4;
- int l = (w - strlen(Text)) / 2;
+ int l = (w - int(strlen(Text))) / 2;
if (l < 0)
l = 0;
cDvbApi::PrimaryDvbApi->Fill(Index * w, -1, w, 1, BgColor);