changeset 13796:28c874e660d1

resize preset now respect movie aspect
author nplourde
date Fri, 29 Oct 2004 02:16:16 +0000
parents ac35862cbc16
children f84eeb35e13a
files libvo/vo_quartz.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_quartz.c	Fri Oct 29 01:24:14 2004 +0000
+++ b/libvo/vo_quartz.c	Fri Oct 29 02:16:16 2004 +0000
@@ -349,7 +349,7 @@
 						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 @@
 						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 @@
 						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;