summaryrefslogtreecommitdiffstats
path: root/libvo/vo_macosx.m
diff options
context:
space:
mode:
authornplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-07-01 17:24:31 +0000
committernplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-07-01 17:24:31 +0000
commit762820ba8fb4fd480baef37bc71b4cf06d755ad8 (patch)
tree5b86a7b829394dc907ed1f45bf60a1da0110af06 /libvo/vo_macosx.m
parent2814dd6533814160cc651bec82f638e74a9fbde2 (diff)
downloadmpv-762820ba8fb4fd480baef37bc71b4cf06d755ad8.tar.bz2
mpv-762820ba8fb4fd480baef37bc71b4cf06d755ad8.tar.xz
fix fullscreen menubar item behaviour
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15883 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_macosx.m')
-rw-r--r--libvo/vo_macosx.m42
1 files changed, 28 insertions, 14 deletions
diff --git a/libvo/vo_macosx.m b/libvo/vo_macosx.m
index a724255236..16360440c6 100644
--- a/libvo/vo_macosx.m
+++ b/libvo/vo_macosx.m
@@ -491,19 +491,35 @@ static uint32_t control(uint32_t request, void *data, ...)
if(sender == kAspectFullCmd)
{
movie_aspect = 4.0f/3.0f;
- frame.size.width = d_width*winSizeMult;
- frame.size.height = (d_width/movie_aspect)*winSizeMult;
- [window setContentSize: frame.size];
- [self reshape];
+
+ if(isFullscreen)
+ {
+ [self reshape];
+ }
+ else
+ {
+ frame.size.width = d_width*winSizeMult;
+ frame.size.height = (d_width/movie_aspect)*winSizeMult;
+ [window setContentSize: frame.size];
+ [self reshape];
+ }
}
if(sender == kAspectWideCmd)
{
movie_aspect = 16.0f/9.0f;
- frame.size.width = d_width*winSizeMult;
- frame.size.height = (d_width/movie_aspect)*winSizeMult;
- [window setContentSize: frame.size];
- [self reshape];
+
+ if(isFullscreen)
+ {
+ [self reshape];
+ }
+ else
+ {
+ frame.size.width = d_width*winSizeMult;
+ frame.size.height = (d_width/movie_aspect)*winSizeMult;
+ [window setContentSize: frame.size];
+ [self reshape];
+ }
}
}
@@ -621,7 +637,6 @@ static uint32_t control(uint32_t request, void *data, ...)
if( ((curTime - lastTime) >= 5) || (lastTime == 0) )
{
- HideMenuBar();
HideCursor();
mouseHide = YES;
lastTime = curTime;
@@ -671,8 +686,7 @@ static uint32_t control(uint32_t request, void *data, ...)
{
if(!isRootwin)
{
- //hide menubar and mouse if fullscreen on main display
- HideMenuBar();
+ SetSystemUIMode( kUIModeAllHidden, kUIOptionAutoShowMenuBar);
HideCursor();
mouseHide = YES;
}
@@ -690,9 +704,10 @@ static uint32_t control(uint32_t request, void *data, ...)
isFullscreen = 1;
}
else
- {
+ {
+ SetSystemUIMode( kUIModeNormal, NULL);
+
isFullscreen = 0;
- ShowMenuBar();
ShowCursor();
mouseHide = NO;
@@ -851,7 +866,6 @@ static uint32_t control(uint32_t request, void *data, ...)
{
if(isFullscreen && !isRootwin)
{
- ShowMenuBar();
ShowCursor();
mouseHide = NO;
}