vo_directx: do not clip overlay against screen size

Clipping it makes the video output look extremely crappy. There seems no
good reason to do this, and VirtualBox is fine with overlays larger than
the screen.
This commit is contained in:
wm4 2011-10-28 12:43:36 +02:00
parent 67fcdcd8a3
commit c9ba8ac9d7
1 changed files with 1 additions and 3 deletions

View File

@ -470,9 +470,7 @@ static uint32_t Directx_ManageDisplay(void)
panscan_calc_windowed();
width += vo_panscan_x;
height += vo_panscan_y;
width = FFMIN(width, vo_screenwidth);
height = FFMIN(height, vo_screenheight);
rd.left += (vo_dwidth - width) / 2;
rd.left += (vo_dwidth - width ) / 2;
rd.top += (vo_dheight - height) / 2;
rd.right = rd.left + width;