summaryrefslogtreecommitdiff
path: root/interface.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-07-27 11:51:42 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-07-27 11:51:42 +0200
commitd008680ad78832701d59d54733d302c0287bc879 (patch)
treeccc96e0337f835041be1e8f79d7b82eca48da9ac /interface.c
parent81919a6647b6c02e8ea368ae0c88db367341c769 (diff)
downloadvdr-d008680ad78832701d59d54733d302c0287bc879.tar.gz
vdr-d008680ad78832701d59d54733d302c0287bc879.tar.bz2
Made the width and height of the OSD configurable
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/interface.c b/interface.c
index 55129341..572a41b8 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.37 2001/07/22 12:26:28 kls Exp $
+ * $Id: interface.c 1.38 2001/07/27 11:39:53 kls Exp $
*/
#include "interface.h"
@@ -44,8 +44,13 @@ cInterface::~cInterface()
void cInterface::Open(int NumCols, int NumLines)
{
- if (!open++)
+ if (!open++) {
+ if (NumCols == 0)
+ NumCols = Setup.OSDwidth;
+ if (NumLines == 0)
+ NumLines = Setup.OSDheight;
cDvbApi::PrimaryDvbApi->Open(width = NumCols, height = NumLines);
+ }
}
void cInterface::Close(void)
@@ -289,7 +294,7 @@ void cInterface::Status(const char *s, eDvbColor FgColor, eDvbColor BgColor)
void cInterface::Info(const char *s)
{
- Open(MenuColumns, -1);
+ Open(Setup.OSDwidth, -1);
isyslog(LOG_INFO, "info: %s", s);
Status(s, clrWhite, clrGreen);
Wait();
@@ -299,7 +304,7 @@ void cInterface::Info(const char *s)
void cInterface::Error(const char *s)
{
- Open(MenuColumns, -1);
+ Open(Setup.OSDwidth, -1);
esyslog(LOG_ERR, "ERROR: %s", s);
Status(s, clrWhite, clrRed);
Wait();