diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2009-05-09 10:11:16 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2009-05-09 10:11:16 +0200 |
commit | f936db2ac64206b682de49b9d3bef853eec4e6b1 (patch) | |
tree | e63e616a35fe1d310ccf80a410a4608c8062b8a2 /device.c | |
parent | 61c811ac709ffd56c4ce69c1c72e56fcb28b0d0c (diff) | |
download | vdr-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.c | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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) |