Remove unused paramters to VideoDisplay::UpdateSize

Originally committed to SVN as r5971.
This commit is contained in:
Thomas Goyne 2011-12-06 00:18:13 +00:00
parent 880ea8848c
commit 904e0769b1
2 changed files with 4 additions and 6 deletions

View File

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

View File

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