summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-04-06 12:51:50 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-04-06 12:51:50 +0200
commit3d90c8c4ee93f69b9ce363b8430a6ef76dc9d32c (patch)
treebf001f7edf2b0bd705d0c6fe8f10ccb4bcfacadf
parent9e9b85ede67e2b231bf02bd075ccdf458cbf8ba0 (diff)
downloadvdr-3d90c8c4ee93f69b9ce363b8430a6ef76dc9d32c.tar.gz
vdr-3d90c8c4ee93f69b9ce363b8430a6ef76dc9d32c.tar.bz2
Fixed displaying messages in the status line in case they exceed the OSD width
-rw-r--r--CONTRIBUTORS2
-rw-r--r--HISTORY4
-rw-r--r--interface.c4
3 files changed, 7 insertions, 3 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 52b01b33..b9868f5f 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -477,6 +477,8 @@ Gerhard Steiner <steiner@mail.austria.com>
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 <jaakko@hyvatti.iki.fi>
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);