diff options
| author | Parker Lamb <parkerlamb@users.noreply.github.com> | 2018-01-08 16:42:05 +0000 |
|---|---|---|
| committer | Parker Lamb <parkerlamb@users.noreply.github.com> | 2018-01-08 16:46:07 +0000 |
| commit | 53ed82db716b2cc260f6882dc85f046902f9d744 (patch) | |
| tree | fc7a59827e6b4d7de10b5fb7e3d99926b6d85917 | |
| parent | d512d4127fa12a710e5d1d6d8067fe050b3445e7 (diff) | |
UI/Vulkan: Fixed graphics context recreation on HiDPI systems.
| -rw-r--r-- | src/xenia/ui/vulkan/vulkan_context.cc | 4 |
1 files 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(); } |
