mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 21:56:36 +00:00
Cleanup
This commit is contained in:
parent
a0d82754d5
commit
43f116fa40
@ -408,7 +408,7 @@ static GLFWbool setupTransparentWindow(_GLFWwindow* window)
|
|||||||
// DwmEnableBlurBehindWindow + negative region.
|
// DwmEnableBlurBehindWindow + negative region.
|
||||||
if (window->decorated && isWindows8OrGreater())
|
if (window->decorated && isWindows8OrGreater())
|
||||||
{
|
{
|
||||||
long style = GetWindowLong(handle, GWL_EXSTYLE);
|
long style = GetWindowLongPtrW(handle, GWL_EXSTYLE);
|
||||||
if (!style) {
|
if (!style) {
|
||||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||||
"WGL: Failed to retrieve extended styles. GetLastError: %d",
|
"WGL: Failed to retrieve extended styles. GetLastError: %d",
|
||||||
@ -416,7 +416,7 @@ static GLFWbool setupTransparentWindow(_GLFWwindow* window)
|
|||||||
return GLFW_FALSE;
|
return GLFW_FALSE;
|
||||||
}
|
}
|
||||||
style |= WS_EX_LAYERED;
|
style |= WS_EX_LAYERED;
|
||||||
if (!SetWindowLongPtr(handle, GWL_EXSTYLE, style))
|
if (!SetWindowLongPtrW(handle, GWL_EXSTYLE, style))
|
||||||
{
|
{
|
||||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||||
"WGL: Failed to add layered style. GetLastError: %d",
|
"WGL: Failed to add layered style. GetLastError: %d",
|
||||||
|
Loading…
Reference in New Issue
Block a user