diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 52b01b33..b9868f5f 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -477,6 +477,8 @@ Gerhard Steiner shall be executed from the "Recordings" menu for suggesting to interpret the character '|' in the description texts of EPG records as a newline character + for reporting a bug in displaying messages in the status line in case they exceed + the OSD width Jaakko Hyvätti for translating OSD texts to the Finnish language diff --git a/HISTORY b/HISTORY index 57246178..90443d6c 100644 --- a/HISTORY +++ b/HISTORY @@ -1988,7 +1988,7 @@ Video Disk Recorder Revision History reporting this one). - Fixed support for Viaccess CAMs (thanks to Axel Gruber for helping to debug this). -2003-03-30: Version 1.1.27 +2003-04-06: Version 1.1.27 - The CAM is now accessed only if the current channel actually has a non-zero Ca value, and CAM access is completely suppressed during replay, which avoids @@ -2010,3 +2010,5 @@ Video Disk Recorder Revision History written. - Fixed a crash in case the index file can't be accessed any more during replay (thanks to Stefan Huelswitt for reporting this one). +- Fixed displaying messages in the status line in case they exceed the OSD width + (thanks to Gerhard Steiner for reporting this one). 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);