From 904e0769b1191533a026ddd4d6bbd64a5b4ca4ed Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 6 Dec 2011 00:18:13 +0000 Subject: [PATCH] Remove unused paramters to VideoDisplay::UpdateSize Originally committed to SVN as r5971. --- aegisub/src/video_display.cpp | 8 +++----- aegisub/src/video_display.h | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) 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&);