VideoCommon/Present: Remove use of g_presenter inside Presenter class

There's no need to self reference a global of the class itself when we
can just call the function directly.
This commit is contained in:
Lioncash 2023-12-09 20:15:29 -05:00
parent dd227fea5a
commit 0df7908025
1 changed files with 1 additions and 2 deletions

View File

@ -402,8 +402,7 @@ void Presenter::SetWindowSize(int width, int height)
// "AspectMode::Stretch" setting because that would self influence the output result,
// given it would be based on the previous frame resolution
const bool allow_stretch = false;
const auto [out_width, out_height] =
g_presenter->CalculateOutputDimensions(width, height, allow_stretch);
const auto [out_width, out_height] = CalculateOutputDimensions(width, height, allow_stretch);
// Track the last values of width/height to avoid sending a window resize event every frame.
if (out_width == m_last_window_request_width && out_height == m_last_window_request_height)