summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-05-09 10:11:16 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2009-05-09 10:11:16 +0200
commitf936db2ac64206b682de49b9d3bef853eec4e6b1 (patch)
treee63e616a35fe1d310ccf80a410a4608c8062b8a2 /device.c
parent61c811ac709ffd56c4ce69c1c72e56fcb28b0d0c (diff)
downloadvdr-f936db2ac64206b682de49b9d3bef853eec4e6b1.tar.gz
vdr-f936db2ac64206b682de49b9d3bef853eec4e6b1.tar.bz2
Implemented cDevice::GetOsdSize(); fixed the way the OSD size is determined on full featured DVB cards
Diffstat (limited to 'device.c')
-rw-r--r--device.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/device.c b/device.c
index 11f6f93f..50a63d54 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c 2.18 2009/05/08 13:27:29 kls Exp $
+ * $Id: device.c 2.19 2009/05/09 10:02:58 kls Exp $
*/
#include "device.h"
@@ -391,11 +391,18 @@ eVideoSystem cDevice::GetVideoSystem(void)
void cDevice::GetVideoSize(int &Width, int &Height, eVideoAspect &Aspect)
{
- Width = MINOSDWIDTH;
- Height = MINOSDHEIGHT;
+ Width = 0;
+ Height = 0;
Aspect = va4_3;
}
+void cDevice::GetOsdSize(int &Width, int &Height, double &Aspect)
+{
+ Width = 720;
+ Height = 480;
+ Aspect = 1.0;
+}
+
//#define PRINTPIDS(s) { char b[500]; char *q = b; q += sprintf(q, "%d %s ", CardIndex(), s); for (int i = 0; i < MAXPIDHANDLES; i++) q += sprintf(q, " %s%4d %d", i == ptOther ? "* " : "", pidHandles[i].pid, pidHandles[i].used); dsyslog(b); }
#define PRINTPIDS(s)