1
0
mirror of synced 2025-02-13 09:02:37 +01:00

impr: Completely eradicate Window resize flickering on Windows

This commit is contained in:
WerWolv 2024-07-01 20:50:10 +02:00
parent 67930cf65d
commit 5fced6bb63

View File

@ -631,6 +631,7 @@ namespace hex {
// Remove WS_POPUP style from the window to make various window management tools work // Remove WS_POPUP style from the window to make various window management tools work
auto hwnd = glfwGetWin32Window(m_window); auto hwnd = glfwGetWin32Window(m_window);
::SetWindowLong(hwnd, GWL_STYLE, (GetWindowLong(hwnd, GWL_STYLE) | WS_OVERLAPPEDWINDOW) & ~WS_POPUP); ::SetWindowLong(hwnd, GWL_STYLE, (GetWindowLong(hwnd, GWL_STYLE) | WS_OVERLAPPEDWINDOW) & ~WS_POPUP);
::SetWindowLong(hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_COMPOSITED | WS_EX_LAYERED);
if (!ImHexApi::System::impl::isWindowResizable()) { if (!ImHexApi::System::impl::isWindowResizable()) {
if (glfwGetWindowAttrib(m_window, GLFW_MAXIMIZED)) { if (glfwGetWindowAttrib(m_window, GLFW_MAXIMIZED)) {