summaryrefslogtreecommitdiff
path: root/dvbsubtitle.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-02-25 14:47:44 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-02-25 14:47:44 +0100
commitd0cd92a4559c06fa5801099ee094e3155bd9a3d8 (patch)
tree98c6d7b9e85e9054b94660c542a806d7af1be9f4 /dvbsubtitle.c
parent42c42b554af5b5290eaf40ea046e472824ec6f28 (diff)
downloadvdr-d0cd92a4559c06fa5801099ee094e3155bd9a3d8.tar.gz
vdr-d0cd92a4559c06fa5801099ee094e3155bd9a3d8.tar.bz2
Fixed getting the video aspect ratio for scaling subtitles (cont'd)
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 c29c9155..54029e28 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.25 2012/02/24 11:19:54 kls Exp $
+ * $Id: dvbsubtitle.c 2.26 2012/02/25 14:47:44 kls Exp $
*/
@@ -984,7 +984,7 @@ void cDvbSubtitleConverter::SetOsdData(void)
double VideoAspect;
cDevice::PrimaryDevice()->GetOsdSize(OsdWidth, OsdHeight, OsdAspect);
cDevice::PrimaryDevice()->GetVideoSize(VideoWidth, VideoHeight, VideoAspect);
- if (OsdWidth == displayWidth && OsdHeight == displayHeight || DoubleEqual(VideoAspect, 1.0)) {
+ if (OsdWidth == displayWidth && OsdHeight == displayHeight) {
osdFactorX = osdFactorY = 1.0;
osdDeltaX = osdDeltaY = 0;
}