Mercurial > mplayer.hg
diff libvo/vo_macosx.m @ 15320:f743828642fd
add ontop
author | nplourde |
---|---|
date | Mon, 02 May 2005 01:48:37 +0000 |
parents | e985d786c5f1 |
children | 5bd11a72dc58 |
line wrap: on
line diff
--- a/libvo/vo_macosx.m Sun May 01 22:27:15 2005 +0000 +++ b/libvo/vo_macosx.m Mon May 02 01:48:37 2005 +0000 @@ -49,6 +49,7 @@ extern int vo_ontop; extern int vo_fs; static int isFullscreen; +static int isOntop; extern float monitor_aspect; extern int vo_keepaspect; extern float movie_aspect; @@ -513,6 +514,16 @@ */ - (void) ontop { + if(vo_ontop) + { + [window setLevel:NSScreenSaverWindowLevel]; + isOntop = YES; + } + else + { + [window setLevel:NSNormalWindowLevel]; + isOntop = NO; + } } /*