summaryrefslogtreecommitdiff
path: root/dvbsubtitle.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-09-10 09:45:55 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2011-09-10 09:45:55 +0200
commit873b14ac0c5e6ee53c61f3e08df2ce2ee7d9268f (patch)
tree50565dca8b760d9069de442117c3acccc35181c9 /dvbsubtitle.c
parent699fd6d5d70030aef5e34494c719d37d4f0cc03f (diff)
downloadvdr-873b14ac0c5e6ee53c61f3e08df2ce2ee7d9268f.tar.gz
vdr-873b14ac0c5e6ee53c61f3e08df2ce2ee7d9268f.tar.bz2
Fixed scaling subtitles in case the primary device's GetVideoSize() function doesn't return actual values
Diffstat (limited to 'dvbsubtitle.c')
-rw-r--r--dvbsubtitle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dvbsubtitle.c b/dvbsubtitle.c
index 43d072d4..7b95fc3a 100644
--- a/dvbsubtitle.c
+++ b/dvbsubtitle.c
@@ -7,7 +7,7 @@
* Original author: Marco Schlüßler <marco@lordzodiac.de>
* With some input from the "subtitle plugin" by Pekka Virtanen <pekka.virtanen@sci.fi>
*
- * $Id: dvbsubtitle.c 2.18 2011/08/13 13:33:00 kls Exp $
+ * $Id: dvbsubtitle.c 2.19 2011/09/10 09:43:40 kls Exp $
*/
@@ -887,7 +887,7 @@ void cDvbSubtitleConverter::SetOsdData(void)
double VideoAspect;
cDevice::PrimaryDevice()->GetOsdSize(OsdWidth, OsdHeight, OsdAspect);
cDevice::PrimaryDevice()->GetVideoSize(VideoWidth, VideoHeight, VideoAspect);
- if (OsdWidth == displayWidth && OsdHeight == displayHeight) {
+ if (OsdWidth == displayWidth && OsdHeight == displayHeight || VideoWidth == 0) {
osdFactorX = osdFactorY = 1.0;
osdDeltaX = osdDeltaY = 0;
}