mirror of
https://github.com/glfw/glfw.git
synced 2024-11-15 02:34:36 +00:00
Add WS_THICKFRAME for resizing undecorated windows
This commit is contained in:
parent
d966c0c3e6
commit
350600ed89
@ -470,14 +470,6 @@ void _glfwFocusWindowNull(_GLFWwindow* window)
|
|||||||
_glfwInputWindowFocus(window, GLFW_TRUE);
|
_glfwInputWindowFocus(window, GLFW_TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _glfwPlatformDragWindow(_GLFWwindow* window)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void _glfwPlatformResizeWindow(_GLFWwindow* window, int border)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
int _glfwPlatformWindowFocused(_GLFWwindow* window)
|
int _glfwPlatformWindowFocused(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
return _glfw.null.focusedWindow == window;
|
return _glfw.null.focusedWindow == window;
|
||||||
|
@ -58,7 +58,12 @@ static DWORD getWindowStyle(const _GLFWwindow* window)
|
|||||||
style |= WS_MAXIMIZEBOX | WS_THICKFRAME;
|
style |= WS_MAXIMIZEBOX | WS_THICKFRAME;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
style |= WS_POPUP;
|
style |= WS_POPUP;
|
||||||
|
|
||||||
|
if (window->resizable)
|
||||||
|
style |= WS_THICKFRAME;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return style;
|
return style;
|
||||||
|
Loading…
Reference in New Issue
Block a user