summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authornplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-10-29 02:16:16 +0000
committernplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-10-29 02:16:16 +0000
commitadf3551036605e387be3579065f69bb38b24b13e (patch)
treeeb68963022c896daf10082e9a4a4d2ba13a5d67d /libvo
parent1f19fc4e52f8d2ae4c30cd430f5dadee8abcf8c4 (diff)
downloadmpv-adf3551036605e387be3579065f69bb38b24b13e.tar.bz2
mpv-adf3551036605e387be3579065f69bb38b24b13e.tar.xz
resize preset now respect movie aspect
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13797 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_quartz.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libvo/vo_quartz.c b/libvo/vo_quartz.c
index 82b0a58ded..82f87ffa56 100644
--- a/libvo/vo_quartz.c
+++ b/libvo/vo_quartz.c
@@ -349,7 +349,7 @@ static OSStatus MainWindowCommandHandler(EventHandlerCallRef nextHandler, EventR
vo_fs = (!(vo_fs)); window_fullscreen();
}
- SizeWindow(theWindow, (d_width/2), (d_height/2)+border, 1);
+ SizeWindow(theWindow, (d_width/2), ((d_width/movie_aspect)/2)+border, 1);
RepositionWindow(theWindow, NULL, kWindowCascadeOnMainScreen);
window_resized();
break;
@@ -360,7 +360,7 @@ static OSStatus MainWindowCommandHandler(EventHandlerCallRef nextHandler, EventR
vo_fs = (!(vo_fs)); window_fullscreen();
}
- SizeWindow(theWindow, d_width, d_height+border, 1);
+ SizeWindow(theWindow, d_width, (d_width/movie_aspect)+border, 1);
RepositionWindow(theWindow, NULL, kWindowCascadeOnMainScreen);
window_resized();
break;
@@ -371,7 +371,7 @@ static OSStatus MainWindowCommandHandler(EventHandlerCallRef nextHandler, EventR
vo_fs = (!(vo_fs)); window_fullscreen();
}
- SizeWindow(theWindow, (d_width*2), (d_height*2)+border, 1);
+ SizeWindow(theWindow, (d_width*2), ((d_width/movie_aspect)*2)+border, 1);
RepositionWindow(theWindow, NULL, kWindowCascadeOnMainScreen);
window_resized();
break;