mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 20:03:10 +02:00
Remove panscan related conditions and code that only breaks future windowed
aspect and panscan without any real benefit. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29568 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f6e58b8a99
commit
8082e89f6e
@ -748,26 +748,12 @@ static int control(uint32_t request, void *data, ...)
|
||||
case VOCTRL_GUISUPPORT:
|
||||
return VO_TRUE;
|
||||
case VOCTRL_GET_PANSCAN:
|
||||
if (!vo_config_count || !vo_fs)
|
||||
return VO_FALSE;
|
||||
return VO_TRUE;
|
||||
case VOCTRL_FULLSCREEN:
|
||||
vo_x11_fullscreen();
|
||||
/* indended, fallthrough to update panscan on fullscreen/windowed switch */
|
||||
case VOCTRL_SET_PANSCAN:
|
||||
if ((vo_fs && (vo_panscan != vo_panscan_amount))
|
||||
|| (!vo_fs && vo_panscan_amount))
|
||||
{
|
||||
int old_y = vo_panscan_y;
|
||||
|
||||
panscan_calc();
|
||||
|
||||
if (old_y != vo_panscan_y)
|
||||
{
|
||||
resize();
|
||||
flip_page();
|
||||
}
|
||||
}
|
||||
return VO_TRUE;
|
||||
case VOCTRL_SET_EQUALIZER:
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user