mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed displaying messages in the status line in case they exceed the OSD width
This commit is contained in:
parent
9e9b85ede6
commit
3d90c8c4ee
@ -477,6 +477,8 @@ Gerhard Steiner <steiner@mail.austria.com>
|
|||||||
shall be executed from the "Recordings" menu
|
shall be executed from the "Recordings" menu
|
||||||
for suggesting to interpret the character '|' in the description texts of EPG
|
for suggesting to interpret the character '|' in the description texts of EPG
|
||||||
records as a newline character
|
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>
|
Jaakko Hyvätti <jaakko@hyvatti.iki.fi>
|
||||||
for translating OSD texts to the Finnish language
|
for translating OSD texts to the Finnish language
|
||||||
|
4
HISTORY
4
HISTORY
@ -1988,7 +1988,7 @@ Video Disk Recorder Revision History
|
|||||||
reporting this one).
|
reporting this one).
|
||||||
- Fixed support for Viaccess CAMs (thanks to Axel Gruber for helping to debug this).
|
- 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
|
- 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
|
value, and CAM access is completely suppressed during replay, which avoids
|
||||||
@ -2010,3 +2010,5 @@ Video Disk Recorder Revision History
|
|||||||
written.
|
written.
|
||||||
- Fixed a crash in case the index file can't be accessed any more during replay
|
- Fixed a crash in case the index file can't be accessed any more during replay
|
||||||
(thanks to Stefan Huelswitt for reporting this one).
|
(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).
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* 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"
|
#include "interface.h"
|
||||||
@ -264,7 +264,7 @@ void cInterface::Status(const char *s, eDvbColor FgColor, eDvbColor BgColor)
|
|||||||
int Line = (abs(height) == 1) ? 0 : -2;
|
int Line = (abs(height) == 1) ? 0 : -2;
|
||||||
ClearEol(0, Line, s ? BgColor : clrBackground);
|
ClearEol(0, Line, s ? BgColor : clrBackground);
|
||||||
if (s) {
|
if (s) {
|
||||||
int x = (Width() - strlen(s)) / 2;
|
int x = (Width() - int(strlen(s))) / 2;
|
||||||
if (x < 0)
|
if (x < 0)
|
||||||
x = 0;
|
x = 0;
|
||||||
Write(x, Line, s, FgColor, BgColor);
|
Write(x, Line, s, FgColor, BgColor);
|
||||||
|
Loading…
Reference in New Issue
Block a user