From df1c09235fe878b6212db08adf3122a2e01a3ce3 Mon Sep 17 00:00:00 2001 From: Serhii Rieznik Date: Mon, 23 Apr 2018 20:56:47 +0300 Subject: [PATCH] Enable DPI awareness on Windows platform --- base/vulkanexamplebase.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/vulkanexamplebase.cpp b/base/vulkanexamplebase.cpp index f12e533a..dd7a9c42 100644 --- a/base/vulkanexamplebase.cpp +++ b/base/vulkanexamplebase.cpp @@ -761,6 +761,8 @@ VulkanExampleBase::VulkanExampleBase(bool enableValidation) { setupConsole("Vulkan validation output"); } + + SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_SYSTEM_AWARE); #endif }