Mercurial > mplayer.hg
diff vidix/drivers/nvidia_vid.c @ 16367:8e859a01904f
fix window position adjustment
author | faust3 |
---|---|
date | Sat, 03 Sep 2005 08:48:59 +0000 |
parents | 6a49dea2c0e2 |
children | b2e4d3f3c0af |
line wrap: on
line diff
--- a/vidix/drivers/nvidia_vid.c Fri Sep 02 21:54:17 2005 +0000 +++ b/vidix/drivers/nvidia_vid.c Sat Sep 03 08:48:59 2005 +0000 @@ -506,7 +506,7 @@ 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 @@ 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 */