mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 13:04:35 +00:00
Cleanup
This commit is contained in:
parent
32e78aeb2e
commit
5d0d30db38
@ -332,9 +332,9 @@ static void updateFramebufferTransparency(const _GLFWwindow* window)
|
|||||||
// color will be transparent. That doesn't seem to be the
|
// color will be transparent. That doesn't seem to be the
|
||||||
// case anymore, at least when used with blur behind window
|
// case anymore, at least when used with blur behind window
|
||||||
// plus negative region.
|
// plus negative region.
|
||||||
LONG style = GetWindowLongW(window->win32.handle, GWL_EXSTYLE);
|
LONG exStyle = GetWindowLongW(window->win32.handle, GWL_EXSTYLE);
|
||||||
style |= WS_EX_LAYERED;
|
exStyle |= WS_EX_LAYERED;
|
||||||
SetWindowLongW(window->win32.handle, GWL_EXSTYLE, style);
|
SetWindowLongW(window->win32.handle, GWL_EXSTYLE, exStyle);
|
||||||
|
|
||||||
// Using a color key not equal to black to fix the trailing
|
// Using a color key not equal to black to fix the trailing
|
||||||
// issue. When set to black, something is making the hit test
|
// issue. When set to black, something is making the hit test
|
||||||
@ -347,9 +347,9 @@ static void updateFramebufferTransparency(const _GLFWwindow* window)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LONG style = GetWindowLongW(window->win32.handle, GWL_EXSTYLE);
|
LONG exStyle = GetWindowLongW(window->win32.handle, GWL_EXSTYLE);
|
||||||
style &= ~WS_EX_LAYERED;
|
exStyle &= ~WS_EX_LAYERED;
|
||||||
SetWindowLongW(window->win32.handle, GWL_EXSTYLE, style);
|
SetWindowLongW(window->win32.handle, GWL_EXSTYLE, exStyle);
|
||||||
RedrawWindow(window->win32.handle, NULL, NULL,
|
RedrawWindow(window->win32.handle, NULL, NULL,
|
||||||
RDW_ERASE | RDW_INVALIDATE | RDW_FRAME);
|
RDW_ERASE | RDW_INVALIDATE | RDW_FRAME);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user