summaryrefslogtreecommitdiff
path: root/dvbspu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-08-15 13:05:50 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-08-15 13:05:50 +0200
commit26ffdd1c8361f714fff78fd746f209f386e6b997 (patch)
tree8ba5c9cd172cb4c93a17e4ca1c0b3d84d64e7689 /dvbspu.c
parent71283dbeb112e182a39a59734a5ce451934ac581 (diff)
downloadvdr-26ffdd1c8361f714fff78fd746f209f386e6b997.tar.gz
vdr-26ffdd1c8361f714fff78fd746f209f386e6b997.tar.bz2
Fixed scaling SPU bitmaps in Letterbox mode when playing NTSC material
Diffstat (limited to 'dvbspu.c')
-rw-r--r--dvbspu.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/dvbspu.c b/dvbspu.c
index 4b31401a..27e0bed5 100644
--- a/dvbspu.c
+++ b/dvbspu.c
@@ -8,7 +8,7 @@
*
* parts of this file are derived from the OMS program.
*
- * $Id: dvbspu.c 1.3 2002/10/26 10:46:49 kls Exp $
+ * $Id: dvbspu.c 1.4 2003/08/15 13:04:39 kls Exp $
*/
#include <assert.h>
@@ -301,8 +301,10 @@ void cDvbSpuDecoder::clearHighlight(void)
int cDvbSpuDecoder::ScaleYcoord(int value)
{
- if (scaleMode == eSpuLetterBox)
- return lround((value * 3.0) / 4.0 + 72.0);
+ if (scaleMode == eSpuLetterBox) {
+ int offset = cDevice::PrimaryDevice()->GetVideoSystem() == vsPAL ? 72 : 60;
+ return lround((value * 3.0) / 4.0) + offset;
+ }
else
return value;
}