Mercurial > mplayer.hg
changeset 15320:f743828642fd
add ontop
author | nplourde |
---|---|
date | Mon, 02 May 2005 01:48:37 +0000 |
parents | 09be900afe38 |
children | 1568ad46dc78 |
files | libvo/vo_macosx.m |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
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; + } } /*