mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 00:07:33 +00:00
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:
parent
1f19fc4e52
commit
adf3551036
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user