1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-22 03:08:33 +00:00

standard key support for video out runtime fullscreen switching

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4734 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2002-02-17 01:07:45 +00:00
parent ad7d813709
commit 24d02d9493

View File

@ -370,7 +370,7 @@ void exit_player(char* how){
current_module="exit_player";
if(how) mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_Exiting,how);
mp_msg(MSGT_CPLAYER,MSGL_V,"max framesize was %d bytes\n",max_framesize);
mp_msg(MSGT_CPLAYER,MSGL_DBG2,"max framesize was %d bytes\n",max_framesize);
exit(1);
}
@ -2333,6 +2333,10 @@ if(step_sec>0) {
tv_step_chanlist(tv_handler);
break;
#endif
case 'f':
video_out->control(VOCTRL_FULLSCREEN, 0);
break;
}
} // keyboard event handler
@ -2538,6 +2542,10 @@ if(step_sec>0) {
if (tv_param_on == 1)
tv_step_chanlist(tv_handler);
} break;
case MP_CMD_VO_FULLSCREEN:
{
video_out->control(VOCTRL_FULLSCREEN, 0);
} break;
#endif
default :
printf("Received unknow cmd %s\n",cmd->name);