summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authormswitch <mswitch@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-02-18 23:22:44 +0000
committermswitch <mswitch@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-02-18 23:22:44 +0000
commita8866104c9fb58497a6f2879930d775d2e30ad37 (patch)
treed5e17781c45f137047f844a92d334a4ad17c04b4 /libvo
parent12322d251789f25475ac07e32fe3a0ed996660bd (diff)
downloadmpv-a8866104c9fb58497a6f2879930d775d2e30ad37.tar.bz2
mpv-a8866104c9fb58497a6f2879930d775d2e30ad37.tar.xz
Patch from Tamas Kohegyi to fix subpic placement on 16:9
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9459 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_dxr3.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libvo/vo_dxr3.c b/libvo/vo_dxr3.c
index fa1b38b29b..b403e67f97 100644
--- a/libvo/vo_dxr3.c
+++ b/libvo/vo_dxr3.c
@@ -6,6 +6,9 @@
*/
/* ChangeLog added 2002-01-10
+ * 2003-02-19:
+ * Yet another patch from Tamas Kohegyi to fix subpic placement.
+ *
* 2003-01-12:
* Added patch from Tamas Kohegyi to fix subpic placement with freetype.
*
@@ -531,10 +534,11 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, uint32
#ifdef SPU_SUPPORT
#ifdef HAVE_FREETYPE
if (ioval == EM8300_ASPECTRATIO_16_9) {
- s_width *= 1.5;
+ s_width *= d_height*1.78/s_height*(d_width*1.0/d_height)/2.35;
} else {
s_width *= 0.84;
}
+ //printf("VO: [dxr3] sw/sh:dw/dh ->%i,%i,%i,%i\n",s_width,s_height,d_width,d_height);
#else
s_width*=2;
s_height*=2;