forked from mia/Aegisub
Remove unused paramters to VideoDisplay::UpdateSize
Originally committed to SVN as r5971.
This commit is contained in:
parent
880ea8848c
commit
904e0769b1
2 changed files with 4 additions and 6 deletions
|
@ -255,17 +255,15 @@ void VideoDisplay::DrawOverscanMask(float horizontal_percent, float vertical_per
|
|||
E(glDisable(GL_BLEND));
|
||||
}
|
||||
|
||||
void VideoDisplay::UpdateSize(int arType, double arValue) {
|
||||
void VideoDisplay::UpdateSize() {
|
||||
if (!con->videoController->IsLoaded()) return;
|
||||
if (!IsShownOnScreen()) return;
|
||||
|
||||
int vidW = con->videoController->GetWidth();
|
||||
int vidH = con->videoController->GetHeight();
|
||||
|
||||
if (arType == -1) {
|
||||
arType = con->videoController->GetAspectRatioType();
|
||||
arValue = con->videoController->GetAspectRatioValue();
|
||||
}
|
||||
int arType = con->videoController->GetAspectRatioType();
|
||||
double arValue = con->videoController->GetAspectRatioValue();
|
||||
|
||||
if (freeSize) {
|
||||
GetClientSize(&w,&h);
|
||||
|
|
|
@ -128,7 +128,7 @@ class VideoDisplay : public wxGLCanvas {
|
|||
void OnVideoOpen();
|
||||
|
||||
/// @brief Set the size of the display based on the current zoom and video resolution
|
||||
void UpdateSize(int arType = -1, double arValue = -1.);
|
||||
void UpdateSize();
|
||||
/// @brief Set the zoom level to that indicated by the dropdown
|
||||
void SetZoomFromBox(wxCommandEvent&);
|
||||
|
||||
|
|
Loading…
Reference in a new issue