diff options
author | ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-12-17 15:45:37 +0000 |
---|---|---|
committer | ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-12-17 15:45:37 +0000 |
commit | 1c154cd853ae8c0c6f42b3044c57bf756ad9111d (patch) | |
tree | 72fae996506b1f9a541e1b2736d7c397dfbf14f6 /libvo | |
parent | ae3b0c462c9bfc581088271fbc68a192aa555d04 (diff) | |
download | mpv-1c154cd853ae8c0c6f42b3044c57bf756ad9111d.tar.bz2 mpv-1c154cd853ae8c0c6f42b3044c57bf756ad9111d.tar.xz |
screen_frame is only used for fullscreen mode.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25441 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_macosx.m | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libvo/vo_macosx.m b/libvo/vo_macosx.m index 7c9fe9292b..d251547b36 100644 --- a/libvo/vo_macosx.m +++ b/libvo/vo_macosx.m @@ -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]; |