changeset 29537:5ec1be895a96

Port feature from corevideo: remember half/double size settings and reapply them after an aspect change.
author reimar
date Fri, 28 Aug 2009 14:39:42 +0000
parents 1e432b300e57
children 56c44e84c532
files libvo/vo_quartz.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_quartz.c	Fri Aug 28 14:38:44 2009 +0000
+++ b/libvo/vo_quartz.c	Fri Aug 28 14:39:42 2009 +0000
@@ -99,6 +99,7 @@
 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 @@
                 window_fullscreen();
             }
 
+            winSizeMult = 0.5;
             SizeWindow(theWindow, d_width / 2, d_height / 2, 1);
             window_resized();
             break;
@@ -391,6 +393,7 @@
                 window_fullscreen();
             }
 
+            winSizeMult = 1;
             SizeWindow(theWindow, d_width, d_height, 1);
             window_resized();
             break;
@@ -402,6 +405,7 @@
                 window_fullscreen();
             }
 
+            winSizeMult = 2;
             SizeWindow(theWindow, d_width * 2, d_height * 2, 1);
             window_resized();
             break;
@@ -609,6 +613,8 @@
     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/////////////////////////////////////////////////////