Mercurial > mplayer.hg
comparison libvo/vo_quartz.c @ 12912:1f6bb2356d18
add var vo_rootwin and -rootwin switch for mac osx
author | nplourde |
---|---|
date | Thu, 29 Jul 2004 14:59:48 +0000 |
parents | 5ee3a571c351 |
children | 8564f0979fcb |
comparison
equal
deleted
inserted
replaced
12911:5dd9ab119bb3 | 12912:1f6bb2356d18 |
---|---|
68 } yuv_qt_stuff; | 68 } yuv_qt_stuff; |
69 static MatrixRecord matrix; | 69 static MatrixRecord matrix; |
70 static int EnterMoviesDone = 0; | 70 static int EnterMoviesDone = 0; |
71 static int get_image_done = 0; | 71 static int get_image_done = 0; |
72 | 72 |
73 extern int vo_rootwin; | |
73 extern int vo_ontop; | 74 extern int vo_ontop; |
74 extern int vo_fs; // user want fullscreen | 75 extern int vo_fs; // user want fullscreen |
75 static int vo_quartz_fs; // we are in fullscreen | 76 static int vo_quartz_fs; // we are in fullscreen |
76 | |
77 int WinID = -1; | |
78 | 77 |
79 static int winLevel = 1; | 78 static int winLevel = 1; |
80 int levelList[] = | 79 int levelList[] = |
81 { | 80 { |
82 kCGDesktopWindowLevelKey, | 81 kCGDesktopWindowLevelKey, |
570 window_fullscreen(); | 569 window_fullscreen(); |
571 | 570 |
572 if(vo_ontop) | 571 if(vo_ontop) |
573 window_ontop(); | 572 window_ontop(); |
574 | 573 |
575 if(WinID == 0) | 574 if(vo_rootwin) |
576 { | 575 { |
577 vo_fs = TRUE; | 576 vo_fs = TRUE; |
578 winLevel = 0; | 577 winLevel = 0; |
579 SetWindowGroupLevel(winGroup, CGWindowLevelForKey(levelList[winLevel])); | 578 SetWindowGroupLevel(winGroup, CGWindowLevelForKey(levelList[winLevel])); |
580 window_fullscreen(); | 579 window_fullscreen(); |