From 53ed82db716b2cc260f6882dc85f046902f9d744 Mon Sep 17 00:00:00 2001 From: Parker Lamb Date: Mon, 8 Jan 2018 16:42:05 +0000 Subject: [PATCH] UI/Vulkan: Fixed graphics context recreation on HiDPI systems. --- src/xenia/ui/vulkan/vulkan_context.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/ui/vulkan/vulkan_context.cc b/src/xenia/ui/vulkan/vulkan_context.cc index e91c892ec..0df97b4b3 100644 --- a/src/xenia/ui/vulkan/vulkan_context.cc +++ b/src/xenia/ui/vulkan/vulkan_context.cc @@ -150,8 +150,8 @@ void VulkanContext::BeginSwap() { // If it has been, we'll need to reinitialize the swap chain before we // start touching it. if (target_window_) { - if (target_window_->width() != swap_chain_->surface_width() || - target_window_->height() != swap_chain_->surface_height()) { + if (target_window_->scaled_width() != swap_chain_->surface_width() || + target_window_->scaled_height() != swap_chain_->surface_height()) { // Resized! swap_chain_->Reinitialize(); }