resize preset now respect movie aspect

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13797 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nplourde 2004-10-29 02:16:16 +00:00
parent 1f19fc4e52
commit adf3551036
1 changed files with 3 additions and 3 deletions

View File

@ -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;