diff --git a/aegisub/src/video_display.cpp b/aegisub/src/video_display.cpp index 45c7c33bb..4cc9b2a05 100644 --- a/aegisub/src/video_display.cpp +++ b/aegisub/src/video_display.cpp @@ -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); diff --git a/aegisub/src/video_display.h b/aegisub/src/video_display.h index a32e0faa1..27e31cd85 100644 --- a/aegisub/src/video_display.h +++ b/aegisub/src/video_display.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&);