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));
|
E(glDisable(GL_BLEND));
|
||||||
}
|
}
|
||||||
|
|
||||||
void VideoDisplay::UpdateSize(int arType, double arValue) {
|
void VideoDisplay::UpdateSize() {
|
||||||
if (!con->videoController->IsLoaded()) return;
|
if (!con->videoController->IsLoaded()) return;
|
||||||
if (!IsShownOnScreen()) return;
|
if (!IsShownOnScreen()) return;
|
||||||
|
|
||||||
int vidW = con->videoController->GetWidth();
|
int vidW = con->videoController->GetWidth();
|
||||||
int vidH = con->videoController->GetHeight();
|
int vidH = con->videoController->GetHeight();
|
||||||
|
|
||||||
if (arType == -1) {
|
int arType = con->videoController->GetAspectRatioType();
|
||||||
arType = con->videoController->GetAspectRatioType();
|
double arValue = con->videoController->GetAspectRatioValue();
|
||||||
arValue = con->videoController->GetAspectRatioValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (freeSize) {
|
if (freeSize) {
|
||||||
GetClientSize(&w,&h);
|
GetClientSize(&w,&h);
|
||||||
|
|
|
@ -128,7 +128,7 @@ class VideoDisplay : public wxGLCanvas {
|
||||||
void OnVideoOpen();
|
void OnVideoOpen();
|
||||||
|
|
||||||
/// @brief Set the size of the display based on the current zoom and video resolution
|
/// @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
|
/// @brief Set the zoom level to that indicated by the dropdown
|
||||||
void SetZoomFromBox(wxCommandEvent&);
|
void SetZoomFromBox(wxCommandEvent&);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue