diff options
author | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-03 08:48:59 +0000 |
---|---|---|
committer | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-03 08:48:59 +0000 |
commit | df50ce22f3d832633cb401bf4da7c846fbe7e1ad (patch) | |
tree | ed0a4678c449ed66741d39b310a4022327125f26 /vidix | |
parent | b2e88f2b3295e0a0a9650b80e54c56b8653b9d52 (diff) |
fix window position adjustment
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16368 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'vidix')
-rw-r--r-- | vidix/drivers/nvidia_vid.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vidix/drivers/nvidia_vid.c b/vidix/drivers/nvidia_vid.c index cf952fda40..bb3799a86a 100644 --- a/vidix/drivers/nvidia_vid.c +++ b/vidix/drivers/nvidia_vid.c @@ -506,7 +506,7 @@ static void nv_getscreenproperties(struct rivatv_info *info){ void rivatv_overlay_start (struct rivatv_info *info,int bufno){ uint32_t base, size, offset, xscale, yscale, pan; uint32_t value; - int x=info->wx?info->wx:8, y=info->wy?info->wy:8; + int x=info->wx, y=info->wy; int lwidth=info->d_width, lheight=info->d_height; int bps; int i; @@ -547,6 +547,10 @@ void rivatv_overlay_start (struct rivatv_info *info,int bufno){ x = info->wx - (pan % bps) * 8 / info->depth; y = info->wy - (pan / bps); } + } else { + // we can't adjust the window position correctly in textmode + // setting y to 8 seems to work ok, though + if(!y)y = info->wy+8; } /* adjust negative output window variables */ |