[MPlayer-cvslog] CVS: main/libvo vo_macosx.m,1.24,1.25
Nicolas Plourde CVS
syncmail at mplayerhq.hu
Fri Jul 1 19:24:34 CEST 2005
CVS change done by Nicolas Plourde CVS
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv20900/libvo
Modified Files:
vo_macosx.m
Log Message:
fix fullscreen menubar item behaviour
Index: vo_macosx.m
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_macosx.m,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- vo_macosx.m 29 Jun 2005 21:54:48 -0000 1.24
+++ vo_macosx.m 1 Jul 2005 17:24:31 -0000 1.25
@@ -491,19 +491,35 @@
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 @@
if( ((curTime - lastTime) >= 5) || (lastTime == 0) )
{
- HideMenuBar();
HideCursor();
mouseHide = YES;
lastTime = curTime;
@@ -671,8 +686,7 @@
{
if(!isRootwin)
{
- //hide menubar and mouse if fullscreen on main display
- HideMenuBar();
+ SetSystemUIMode( kUIModeAllHidden, kUIOptionAutoShowMenuBar);
HideCursor();
mouseHide = YES;
}
@@ -690,9 +704,10 @@
isFullscreen = 1;
}
else
- {
+ {
+ SetSystemUIMode( kUIModeNormal, NULL);
+
isFullscreen = 0;
- ShowMenuBar();
ShowCursor();
mouseHide = NO;
@@ -851,7 +866,6 @@
{
if(isFullscreen && !isRootwin)
{
- ShowMenuBar();
ShowCursor();
mouseHide = NO;
}
More information about the MPlayer-cvslog
mailing list