summaryrefslogtreecommitdiff
path: root/dvbsubtitle.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-01-11 10:37:11 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-01-11 10:37:11 +0100
commit73ccde16e82fa9da0ee7c78e3fb1045b09f69c78 (patch)
tree0aa52961608983662aff2bc41f50a2f4ac728b50 /dvbsubtitle.c
parent4d3003393602e8870e9139bfe290a85690f985c8 (diff)
downloadvdr-73ccde16e82fa9da0ee7c78e3fb1045b09f69c78.tar.gz
vdr-73ccde16e82fa9da0ee7c78e3fb1045b09f69c78.tar.bz2
Fixed cDvbSubtitleConverter::SetOsdData()
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 272950fa..c29277dd 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.20 2011/09/18 11:23:15 kls Exp $
+ * $Id: dvbsubtitle.c 2.21 2012/01/11 10:34:07 kls Exp $
*/
@@ -995,7 +995,7 @@ void cDvbSubtitleConverter::SetOsdData(void)
double VideoAspect;
cDevice::PrimaryDevice()->GetOsdSize(OsdWidth, OsdHeight, OsdAspect);
cDevice::PrimaryDevice()->GetVideoSize(VideoWidth, VideoHeight, VideoAspect);
- if (OsdWidth == displayWidth && OsdHeight == displayHeight || VideoWidth == 0) {
+ if (OsdWidth == displayWidth && OsdHeight == displayHeight || DoubleEqual(VideoAspect, 1.0)) {
osdFactorX = osdFactorY = 1.0;
osdDeltaX = osdDeltaY = 0;
}