Mercurial > mplayer.hg
changeset 9458:23b1d5ef281b
Patch from Tamas Kohegyi to fix subpic placement on 16:9
author | mswitch |
---|---|
date | Tue, 18 Feb 2003 23:22:44 +0000 |
parents | ea1c0a4520bf |
children | b83d242708bf |
files | libvo/vo_dxr3.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_dxr3.c Tue Feb 18 22:33:44 2003 +0000 +++ b/libvo/vo_dxr3.c Tue Feb 18 23:22:44 2003 +0000 @@ -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 @@ #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;