diff --git a/main/gui/source/window/win_window.cpp b/main/gui/source/window/win_window.cpp index cbb5f71eb..598b8c0b7 100644 --- a/main/gui/source/window/win_window.cpp +++ b/main/gui/source/window/win_window.cpp @@ -397,22 +397,6 @@ namespace hex { void Window::initNative() { - // Setup DPI Awareness - { - using SetProcessDpiAwarenessContextFunc = HRESULT(WINAPI *)(DPI_AWARENESS_CONTEXT); - - SetProcessDpiAwarenessContextFunc setProcessDpiAwarenessContext = - reinterpret_cast( - reinterpret_cast( - GetProcAddress(GetModuleHandleW(L"user32.dll"), "SetProcessDpiAwarenessContext") - ) - ); - - if (setProcessDpiAwarenessContext != nullptr) { - setProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2); - } - } - if (ImHexApi::System::isDebugBuild()) { // If the application is running in debug mode, ImHex runs under the CONSOLE subsystem, // so we don't need to do anything besides enabling ANSI colors diff --git a/resources/dist/windows/imhex.manifest b/resources/dist/windows/imhex.manifest new file mode 100644 index 000000000..d4910f10b --- /dev/null +++ b/resources/dist/windows/imhex.manifest @@ -0,0 +1,10 @@ + + + + + true + PerMonitorV2 + detached + + + diff --git a/resources/resource.rc b/resources/resource.rc index 854b9559a..89cc6f2ef 100644 --- a/resources/resource.rc +++ b/resources/resource.rc @@ -1,6 +1,7 @@ #pragma code_page(65001) GLFW_ICON ICON dist/windows/icon.ico +1 24 "dist/windows/imhex.manifest" 1 VERSIONINFO FILEVERSION PROJECT_VERSION_MAJOR,PROJECT_VERSION_MINOR,PROJECT_VERSION_PATCH