Misc: Cleanup/deduplicate from c9cba5e

This commit is contained in:
Connor McLaughlin committed 2022-10-13 17:37:39 +10:00
1 parent 1538f26013
commit 0709f92ac1
10 files changed
+58 -48

No files matched your search

+1 -1
View File
@@ -785,7 +785,7 @@ void D3D11HostDisplay::RenderDisplay()
if (!HasDisplayTexture())
return;
const auto [left, top, width, height] = CalculateDrawRect(GetWindowWidth(), GetWindowHeight(), m_display_top_margin);
const auto [left, top, width, height] = CalculateDrawRect(GetWindowWidth(), GetWindowHeight());
if (!m_post_processing_chain.IsEmpty())
{
+1 -1
View File
@@ -687,7 +687,7 @@ void D3D12HostDisplay::RenderDisplay(ID3D12GraphicsCommandList* cmdlist)
if (!HasDisplayTexture())
return;
const auto [left, top, width, height] = CalculateDrawRect(GetWindowWidth(), GetWindowHeight(), m_display_top_margin);
const auto [left, top, width, height] = CalculateDrawRect(GetWindowWidth(), GetWindowHeight());
// if (!m_post_processing_chain.IsEmpty())
// {
+1 -1
View File
@@ -696,7 +696,7 @@ void OpenGLHostDisplay::RenderDisplay()
if (!HasDisplayTexture())
return;
const auto [left, top, width, height] = CalculateDrawRect(GetWindowWidth(), GetWindowHeight(), m_display_top_margin);
const auto [left, top, width, height] = CalculateDrawRect(GetWindowWidth(), GetWindowHeight());
if (!m_post_processing_chain.IsEmpty())
{
+1 -1
View File
@@ -767,7 +767,7 @@ void VulkanHostDisplay::RenderDisplay()
return;
}
const auto [left, top, width, height] = CalculateDrawRect(GetWindowWidth(), GetWindowHeight(), m_display_top_margin);
const auto [left, top, width, height] = CalculateDrawRect(GetWindowWidth(), GetWindowHeight());
if (!m_post_processing_chain.IsEmpty())
{