mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Status messages are now displayed centered
This commit is contained in:
parent
3669bbf375
commit
8fbc28349b
1
HISTORY
1
HISTORY
@ -918,3 +918,4 @@ Video Disk Recorder Revision History
|
||||
per minute.
|
||||
- Activating the "Recordings" menu now displays "scanning recordings..." to
|
||||
give the user some feedback in case this takes longer.
|
||||
- Status messages are now displayed centered.
|
||||
|
10
interface.c
10
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.46 2002/01/26 11:09:58 kls Exp $
|
||||
* $Id: interface.c 1.47 2002/01/27 16:00:31 kls Exp $
|
||||
*/
|
||||
|
||||
#include "interface.h"
|
||||
@ -292,8 +292,12 @@ 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)
|
||||
Write(0, Line, s, FgColor, BgColor);
|
||||
if (s) {
|
||||
int x = (Width() - strlen(s)) / 2;
|
||||
if (x < 0)
|
||||
x = 0;
|
||||
Write(x, Line, s, FgColor, BgColor);
|
||||
}
|
||||
}
|
||||
|
||||
void cInterface::Info(const char *s)
|
||||
|
Loading…
Reference in New Issue
Block a user