diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-08-28 14:39:42 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-08-28 14:39:42 +0000 |
commit | 311db2c468eabfa0834ea05690833c18a57e8d9d (patch) | |
tree | cd7e00014695d91c917422ed653092bacca25c8b /libvo | |
parent | b7c73183522c766c8079ae083f86a1680725c8fc (diff) |
Port feature from corevideo: remember half/double size settings and reapply
them after an aspect change.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29579 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_quartz.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libvo/vo_quartz.c b/libvo/vo_quartz.c index 3ca371be9f..7e634ce663 100644 --- a/libvo/vo_quartz.c +++ b/libvo/vo_quartz.c @@ -99,6 +99,7 @@ int levelList[] = static int int_pause = 0; static float winAlpha = 1; static int mouseHide = FALSE; +static float winSizeMult = 1; static int device_id = 0; @@ -380,6 +381,7 @@ static OSStatus WindowEventHandler(EventHandlerCallRef nextHandler, EventRef eve window_fullscreen(); } + winSizeMult = 0.5; SizeWindow(theWindow, d_width / 2, d_height / 2, 1); window_resized(); break; @@ -391,6 +393,7 @@ static OSStatus WindowEventHandler(EventHandlerCallRef nextHandler, EventRef eve window_fullscreen(); } + winSizeMult = 1; SizeWindow(theWindow, d_width, d_height, 1); window_resized(); break; @@ -402,6 +405,7 @@ static OSStatus WindowEventHandler(EventHandlerCallRef nextHandler, EventRef eve window_fullscreen(); } + winSizeMult = 2; SizeWindow(theWindow, d_width * 2, d_height * 2, 1); window_resized(); break; @@ -609,6 +613,8 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_ OSErr qterr; CGRect tmpBounds; + vo_dwidth = d_width *= winSizeMult; + vo_dheight = d_height *= winSizeMult; config_movie_aspect((float)d_width / d_height); // misc mplayer setup///////////////////////////////////////////////////// |