From 43f116fa40d5147d66c6392e1eb5690c7497dd93 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 7 Mar 2016 21:17:05 +0100 Subject: [PATCH] Cleanup --- src/wgl_context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wgl_context.c b/src/wgl_context.c index 3a9a42b00..ccf951d99 100644 --- a/src/wgl_context.c +++ b/src/wgl_context.c @@ -408,7 +408,7 @@ static GLFWbool setupTransparentWindow(_GLFWwindow* window) // DwmEnableBlurBehindWindow + negative region. if (window->decorated && isWindows8OrGreater()) { - long style = GetWindowLong(handle, GWL_EXSTYLE); + long style = GetWindowLongPtrW(handle, GWL_EXSTYLE); if (!style) { _glfwInputError(GLFW_PLATFORM_ERROR, "WGL: Failed to retrieve extended styles. GetLastError: %d", @@ -416,7 +416,7 @@ static GLFWbool setupTransparentWindow(_GLFWwindow* window) return GLFW_FALSE; } style |= WS_EX_LAYERED; - if (!SetWindowLongPtr(handle, GWL_EXSTYLE, style)) + if (!SetWindowLongPtrW(handle, GWL_EXSTYLE, style)) { _glfwInputError(GLFW_PLATFORM_ERROR, "WGL: Failed to add layered style. GetLastError: %d",