Mercurial > mplayer.hg
changeset 12888:3a58fa9639d4
add support for -rootwin command
author | nplourde |
---|---|
date | Fri, 23 Jul 2004 13:02:40 +0000 |
parents | 9e7cba8fe56f |
children | 5ee3a571c351 |
files | libvo/vo_quartz.c |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_quartz.c Fri Jul 23 13:00:16 2004 +0000 +++ b/libvo/vo_quartz.c Fri Jul 23 13:02:40 2004 +0000 @@ -70,10 +70,13 @@ static int EnterMoviesDone = 0; static int get_image_done = 0; +extern int WinID;; extern int vo_ontop; extern int vo_fs; // user want fullscreen static int vo_quartz_fs; // we are in fullscreen +int WinID = -1; + static int winLevel = 1; int levelList[] = { @@ -569,6 +572,14 @@ if(vo_ontop) window_ontop(); + + if(WinID == 0) + { + vo_fs = TRUE; + winLevel = 0; + SetWindowGroupLevel(winGroup, CGWindowLevelForKey(levelList[winLevel])); + window_fullscreen(); + } return 0; }