diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-04-06 12:51:50 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-04-06 12:51:50 +0200 |
commit | 3d90c8c4ee93f69b9ce363b8430a6ef76dc9d32c (patch) | |
tree | bf001f7edf2b0bd705d0c6fe8f10ccb4bcfacadf /interface.c | |
parent | 9e9b85ede67e2b231bf02bd075ccdf458cbf8ba0 (diff) | |
download | vdr-3d90c8c4ee93f69b9ce363b8430a6ef76dc9d32c.tar.gz vdr-3d90c8c4ee93f69b9ce363b8430a6ef76dc9d32c.tar.bz2 |
Fixed displaying messages in the status line in case they exceed the OSD width
Diffstat (limited to 'interface.c')
-rw-r--r-- | interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/interface.c b/interface.c index 7466a9ae..82b2531e 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.61 2002/12/06 14:13:16 kls Exp $ + * $Id: interface.c 1.62 2003/04/06 12:47:51 kls Exp $ */ #include "interface.h" @@ -264,7 +264,7 @@ void cInterface::Status(const char *s, eDvbColor FgColor, eDvbColor BgColor) int Line = (abs(height) == 1) ? 0 : -2; ClearEol(0, Line, s ? BgColor : clrBackground); if (s) { - int x = (Width() - strlen(s)) / 2; + int x = (Width() - int(strlen(s))) / 2; if (x < 0) x = 0; Write(x, Line, s, FgColor, BgColor); |