mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #12373 from lioncash/present
VideoCommon/Present: Remove use of g_presenter inside Presenter class
This commit is contained in:
commit
ccedeb4936
@ -402,8 +402,7 @@ void Presenter::SetWindowSize(int width, int height)
|
|||||||
// "AspectMode::Stretch" setting because that would self influence the output result,
|
// "AspectMode::Stretch" setting because that would self influence the output result,
|
||||||
// given it would be based on the previous frame resolution
|
// given it would be based on the previous frame resolution
|
||||||
const bool allow_stretch = false;
|
const bool allow_stretch = false;
|
||||||
const auto [out_width, out_height] =
|
const auto [out_width, out_height] = CalculateOutputDimensions(width, height, allow_stretch);
|
||||||
g_presenter->CalculateOutputDimensions(width, height, allow_stretch);
|
|
||||||
|
|
||||||
// Track the last values of width/height to avoid sending a window resize event every frame.
|
// 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)
|
if (out_width == m_last_window_request_width && out_height == m_last_window_request_height)
|
||||||
|
Loading…
Reference in New Issue
Block a user