diff --git a/main/gui/source/window/win_window.cpp b/main/gui/source/window/win_window.cpp index 5e1baac31..e9e8798aa 100644 --- a/main/gui/source/window/win_window.cpp +++ b/main/gui/source/window/win_window.cpp @@ -28,6 +28,7 @@ #include #include #include + #include namespace hex { @@ -389,8 +390,7 @@ namespace hex { // Windows versions before Windows 10 have issues with transparent framebuffers // causing the entire window to be slightly transparent ignoring all configurations - OSVERSIONINFOA versionInfo = { }; - if (::GetVersionExA(&versionInfo) && versionInfo.dwMajorVersion >= 10) { + if (::IsWindows10OrGreater()) { glfwWindowHint(GLFW_TRANSPARENT_FRAMEBUFFER, GLFW_TRUE); } else { glfwWindowHint(GLFW_TRANSPARENT_FRAMEBUFFER, GLFW_FALSE); diff --git a/main/gui/source/window/window.cpp b/main/gui/source/window/window.cpp index 7873152af..0fcdc4d89 100644 --- a/main/gui/source/window/window.cpp +++ b/main/gui/source/window/window.cpp @@ -924,7 +924,6 @@ namespace hex { glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); glfwWindowHint(GLFW_VISIBLE, GLFW_FALSE); glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_API); - glfwWindowHint(GLFW_TRANSPARENT_FRAMEBUFFER, GLFW_TRUE); if (initialWindowProperties.has_value()) { glfwWindowHint(GLFW_MAXIMIZED, initialWindowProperties->maximized); diff --git a/resources/dist/windows/imhex.manifest b/resources/dist/windows/imhex.manifest index d4910f10b..8340c145e 100644 --- a/resources/dist/windows/imhex.manifest +++ b/resources/dist/windows/imhex.manifest @@ -7,4 +7,12 @@ detached - + + + + + + + + + \ No newline at end of file