summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorgabucino <gabucino@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-26 11:51:40 +0000
committergabucino <gabucino@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-26 11:51:40 +0000
commitfb5778a5a554b944b08414d43df6bab35852d91d (patch)
treed161526f54410a91fb301daa6385adafb932d232 /libvo
parent21c026d2365ae78364b7bfe87390db7e95382ebc (diff)
downloadmpv-fb5778a5a554b944b08414d43df6bab35852d91d.tar.bz2
mpv-fb5778a5a554b944b08414d43df6bab35852d91d.tar.xz
fixing truetype rescaling with (x)mga + panscan
Patch by J. Makovicka git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9693 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/mga_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libvo/mga_common.c b/libvo/mga_common.c
index aa2e04c768..df710fc616 100644
--- a/libvo/mga_common.c
+++ b/libvo/mga_common.c
@@ -27,6 +27,7 @@ static uint32_t drwcX,drwcY,dwidth,dheight;
static void draw_alpha(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride){
uint32_t bespitch = (mga_vid_config.src_width + 31) & ~31;
+ x0+=mga_vid_config.src_width*(vo_panscan_x>>1)/(vo_dwidth+vo_panscan_x);
switch(mga_vid_config.format){
case MGA_VID_FORMAT_YV12:
case MGA_VID_FORMAT_IYUV:
@@ -44,7 +45,7 @@ static void draw_alpha(int x0,int y0, int w,int h, unsigned char* src, unsigned
static void draw_osd(void)
{
- vo_draw_text(mga_vid_config.src_width,mga_vid_config.src_height,draw_alpha);
+ vo_draw_text(mga_vid_config.src_width-mga_vid_config.src_width*vo_panscan_x/(vo_dwidth+vo_panscan_x),mga_vid_config.src_height,draw_alpha);
}