summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2011-10-28 12:43:36 +0200
committerwm4 <wm4@mplayer2.org>2012-03-17 20:58:16 +0100
commitc9ba8ac9d76d92821868fba0ec3b3dc9ab16f048 (patch)
tree0dba6f158d53606fa8ebc457b22f9a5599ceb96e
parent67fcdcd8a32ba6b0741c205772beae0fef1cd23e (diff)
downloadmpv-c9ba8ac9d76d92821868fba0ec3b3dc9ab16f048.tar.bz2
mpv-c9ba8ac9d76d92821868fba0ec3b3dc9ab16f048.tar.xz
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.
-rw-r--r--libvo/vo_directx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libvo/vo_directx.c b/libvo/vo_directx.c
index 1c23d15f95..7302b36cdb 100644
--- a/libvo/vo_directx.c
+++ b/libvo/vo_directx.c
@@ -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;