mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 04:44:32 +01:00
screen_frame is only used for fullscreen mode.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25441 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ae3b0c462c
commit
1c154cd853
@ -805,11 +805,6 @@ static int control(uint32_t request, void *data, ...)
|
||||
static NSRect old_frame;
|
||||
static NSRect old_view_frame;
|
||||
|
||||
if(screen_force)
|
||||
screen_frame = [screen_handle frame];
|
||||
else
|
||||
screen_frame = [[window screen] frame];
|
||||
|
||||
panscan_calc();
|
||||
|
||||
//go fullscreen
|
||||
@ -823,6 +818,11 @@ static int control(uint32_t request, void *data, ...)
|
||||
}
|
||||
|
||||
old_frame = [window frame]; //save main window size & position
|
||||
if(screen_force)
|
||||
screen_frame = [screen_handle frame];
|
||||
else
|
||||
screen_frame = [[window screen] frame];
|
||||
|
||||
[window setFrame:screen_frame display:YES animate:animate]; //zoom-in window with nice useless sfx
|
||||
old_view_frame = [self bounds];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user