mirror of https://github.com/mpv-player/mpv
vo_macosx.m disable window animation when going to fullscreen
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21562 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c5d2aa69d9
commit
97c7df03b7
|
@ -327,7 +327,7 @@ static int control(uint32_t request, void *data, ...)
|
||||||
case VOCTRL_QUERY_FORMAT: return query_format(*((uint32_t*)data));
|
case VOCTRL_QUERY_FORMAT: return query_format(*((uint32_t*)data));
|
||||||
case VOCTRL_ONTOP: vo_ontop = (!(vo_ontop)); [mpGLView ontop]; return VO_TRUE;
|
case VOCTRL_ONTOP: vo_ontop = (!(vo_ontop)); [mpGLView ontop]; return VO_TRUE;
|
||||||
case VOCTRL_ROOTWIN: vo_rootwin = (!(vo_rootwin)); [mpGLView rootwin]; return VO_TRUE;
|
case VOCTRL_ROOTWIN: vo_rootwin = (!(vo_rootwin)); [mpGLView rootwin]; return VO_TRUE;
|
||||||
case VOCTRL_FULLSCREEN: vo_fs = (!(vo_fs)); [mpGLView fullscreen: YES]; return VO_TRUE;
|
case VOCTRL_FULLSCREEN: vo_fs = (!(vo_fs)); [mpGLView fullscreen: NO]; return VO_TRUE;
|
||||||
case VOCTRL_GET_PANSCAN: return VO_TRUE;
|
case VOCTRL_GET_PANSCAN: return VO_TRUE;
|
||||||
case VOCTRL_SET_PANSCAN: [mpGLView panscan]; return VO_TRUE;
|
case VOCTRL_SET_PANSCAN: [mpGLView panscan]; return VO_TRUE;
|
||||||
}
|
}
|
||||||
|
@ -489,7 +489,7 @@ static int control(uint32_t request, void *data, ...)
|
||||||
if(sender == kHalfScreenCmd)
|
if(sender == kHalfScreenCmd)
|
||||||
{
|
{
|
||||||
if(isFullscreen) {
|
if(isFullscreen) {
|
||||||
vo_fs = (!(vo_fs)); [self fullscreen:YES];
|
vo_fs = (!(vo_fs)); [self fullscreen:NO];
|
||||||
}
|
}
|
||||||
|
|
||||||
winSizeMult = 0.5;
|
winSizeMult = 0.5;
|
||||||
|
@ -501,7 +501,7 @@ static int control(uint32_t request, void *data, ...)
|
||||||
if(sender == kNormalScreenCmd)
|
if(sender == kNormalScreenCmd)
|
||||||
{
|
{
|
||||||
if(isFullscreen) {
|
if(isFullscreen) {
|
||||||
vo_fs = (!(vo_fs)); [self fullscreen:YES];
|
vo_fs = (!(vo_fs)); [self fullscreen:NO];
|
||||||
}
|
}
|
||||||
|
|
||||||
winSizeMult = 1;
|
winSizeMult = 1;
|
||||||
|
@ -513,7 +513,7 @@ static int control(uint32_t request, void *data, ...)
|
||||||
if(sender == kDoubleScreenCmd)
|
if(sender == kDoubleScreenCmd)
|
||||||
{
|
{
|
||||||
if(isFullscreen) {
|
if(isFullscreen) {
|
||||||
vo_fs = (!(vo_fs)); [self fullscreen:YES];
|
vo_fs = (!(vo_fs)); [self fullscreen:NO];
|
||||||
}
|
}
|
||||||
|
|
||||||
winSizeMult = 2;
|
winSizeMult = 2;
|
||||||
|
@ -525,7 +525,7 @@ static int control(uint32_t request, void *data, ...)
|
||||||
if(sender == kFullScreenCmd)
|
if(sender == kFullScreenCmd)
|
||||||
{
|
{
|
||||||
vo_fs = (!(vo_fs));
|
vo_fs = (!(vo_fs));
|
||||||
[self fullscreen:YES];
|
[self fullscreen:NO];
|
||||||
}
|
}
|
||||||
|
|
||||||
if(sender == kKeepAspectCmd)
|
if(sender == kKeepAspectCmd)
|
||||||
|
|
Loading…
Reference in New Issue