[MPlayer-cvslog] r35153 - trunk/libvo/vo_directx.c
reimar
subversion at mplayerhq.hu
Fri Sep 7 21:16:10 CEST 2012
Author: reimar
Date: Fri Sep 7 21:16:10 2012
New Revision: 35153
Log:
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).
Modified:
trunk/libvo/vo_directx.c
Modified: trunk/libvo/vo_directx.c
==============================================================================
--- trunk/libvo/vo_directx.c Fri Sep 7 19:25:21 2012 (r35152)
+++ trunk/libvo/vo_directx.c Fri Sep 7 21:16:10 2012 (r35153)
@@ -470,8 +470,6 @@ static uint32_t Directx_ManageDisplay(vo
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 @@ static int control(uint32_t request, voi
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);
More information about the MPlayer-cvslog
mailing list