# HG changeset patch # User reimar # Date 1347045370 0 # Node ID 568f0925d9a9188f005643f8068f904c588bacfd # Parent 7f7dedf76624db4f71c342303a7ff2f246678427 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). diff -r 7f7dedf76624 -r 568f0925d9a9 libvo/vo_directx.c --- 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);