From 5d0d30db38e6a7dd648ea58eac6129bfdc4c9c6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Thu, 28 Sep 2017 17:32:15 +0200 Subject: [PATCH] Cleanup --- src/win32_window.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/win32_window.c b/src/win32_window.c index 6bebb19b..490a75d2 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -332,9 +332,9 @@ static void updateFramebufferTransparency(const _GLFWwindow* window) // color will be transparent. That doesn't seem to be the // case anymore, at least when used with blur behind window // plus negative region. - LONG style = GetWindowLongW(window->win32.handle, GWL_EXSTYLE); - style |= WS_EX_LAYERED; - SetWindowLongW(window->win32.handle, GWL_EXSTYLE, style); + LONG exStyle = GetWindowLongW(window->win32.handle, GWL_EXSTYLE); + exStyle |= WS_EX_LAYERED; + SetWindowLongW(window->win32.handle, GWL_EXSTYLE, exStyle); // Using a color key not equal to black to fix the trailing // issue. When set to black, something is making the hit test @@ -347,9 +347,9 @@ static void updateFramebufferTransparency(const _GLFWwindow* window) } else { - LONG style = GetWindowLongW(window->win32.handle, GWL_EXSTYLE); - style &= ~WS_EX_LAYERED; - SetWindowLongW(window->win32.handle, GWL_EXSTYLE, style); + LONG exStyle = GetWindowLongW(window->win32.handle, GWL_EXSTYLE); + exStyle &= ~WS_EX_LAYERED; + SetWindowLongW(window->win32.handle, GWL_EXSTYLE, exStyle); RedrawWindow(window->win32.handle, NULL, NULL, RDW_ERASE | RDW_INVALIDATE | RDW_FRAME); }