diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-12-10 03:55:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-10 03:55:30 +0100 |
| commit | ccedeb4936b9d3a378d5babb074a00a32af35c54 (patch) | |
| tree | bb89264c8ae72d3c6cf3c84bf0303616a9c03331 /Source | |
| parent | bec4c77325a9a5e40c7c3db4ecd22cc91ce252cd (diff) | |
| parent | 0df790802516c29de65e94b59bf9e12e4abdbcc8 (diff) | |
Merge pull request #12373 from lioncash/present
VideoCommon/Present: Remove use of g_presenter inside Presenter class
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/VideoCommon/Present.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/Present.cpp b/Source/Core/VideoCommon/Present.cpp index 0a3b6e90e8..279d07893e 100644 --- a/Source/Core/VideoCommon/Present.cpp +++ b/Source/Core/VideoCommon/Present.cpp @@ -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) |
