Mercurial > mplayer.hg
changeset 35059:568f0925d9a9
Enable panscan for -vo directx.
Not fully working for :noaccel, since it uses
Blt and that does not support scaling beyond
the destination size (or at least it does not
with the current implementation).
author | reimar |
---|---|
date | Fri, 07 Sep 2012 19:16:10 +0000 |
parents | 7f7dedf76624 |
children | c5c8d88d612e |
files | libvo/vo_directx.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_directx.c Fri Sep 07 17:25:21 2012 +0000 +++ b/libvo/vo_directx.c Fri Sep 07 19:16:10 2012 +0000 @@ -470,8 +470,6 @@ 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.top += (vo_dheight - height) / 2; @@ -1131,6 +1129,11 @@ vo_w32_fullscreen(); Directx_ManageDisplay(); return VO_TRUE; + case VOCTRL_GET_PANSCAN: + return VO_TRUE; + case VOCTRL_SET_PANSCAN: + Directx_ManageDisplay(); + return VO_TRUE; case VOCTRL_SET_EQUALIZER: { vf_equalizer_t *eq = data; return color_ctrl_set(eq->item, eq->value);