From 67adc986ab816409e525fa5a244318a9b241feeb Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 28 Apr 2021 02:37:14 +1000 Subject: [PATCH] VulkanHostDisplay: Fix incorrect screenshot size rendering when specified --- src/frontend-common/vulkan_host_display.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontend-common/vulkan_host_display.cpp b/src/frontend-common/vulkan_host_display.cpp index a2e7cec3f..ed8980c0c 100644 --- a/src/frontend-common/vulkan_host_display.cpp +++ b/src/frontend-common/vulkan_host_display.cpp @@ -693,8 +693,7 @@ bool VulkanHostDisplay::RenderScreenshot(u32 width, u32 height, std::vector tex.TransitionToLayout(g_vulkan_context->GetCurrentCommandBuffer(), VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL); - const auto [left, top, draw_width, draw_height] = - CalculateDrawRect(GetWindowWidth(), GetWindowHeight(), m_display_top_margin); + const auto [left, top, draw_width, draw_height] = CalculateDrawRect(width, height, 0); if (!m_post_processing_chain.IsEmpty()) {