mirror of
https://github.com/glfw/glfw.git
synced 2024-11-14 10:34:34 +00:00
Early return for clang compile
Changed functions names to be in line with other glfw functions
This commit is contained in:
parent
797db588de
commit
a9bef61089
@ -260,6 +260,7 @@ video tutorials.
|
||||
- Jonas Ådahl
|
||||
- Lasse Öörni
|
||||
- Leonard König
|
||||
- Robbin Marcus
|
||||
- All the unmentioned and anonymous contributors in the GLFW community, for bug
|
||||
reports, patches, feedback, testing and encouragement
|
||||
|
||||
|
@ -121,6 +121,9 @@ information on what to include when reporting a bug.
|
||||
|
||||
## Changelog
|
||||
|
||||
- Added `glfwSetWindowCaptionArea` to define caption for borderless windows (#1420)
|
||||
- Added `glfwSetWindowResizeBorderSize` to set the resize area on borders for
|
||||
resizing borderless windows (#1420)
|
||||
- Added `GLFW_PLATFORM` init hint for runtime platform selection (#1958)
|
||||
- Added `GLFW_ANY_PLATFORM`, `GLFW_PLATFORM_WIN32`, `GLFW_PLATFORM_COCOA`,
|
||||
`GLFW_PLATFORM_WAYLAND`, `GLFW_PLATFORM_X11` and `GLFW_PLATFORM_NULL` symbols to
|
||||
|
@ -3936,7 +3936,7 @@ GLFWAPI void glfwResizeWindow(GLFWwindow* window, int border);
|
||||
*
|
||||
* @ingroup window
|
||||
*/
|
||||
GLFWAPI void glfwWindowSetCaptionArea(GLFWwindow* window, int offsetX, int offsetY, int sizeX, int sizeY);
|
||||
GLFWAPI void glfwSetWindowCaptionArea(GLFWwindow* window, int offsetX, int offsetY, int sizeX, int sizeY);
|
||||
|
||||
/*! @brief Sets the resize border size for the specified window.
|
||||
*
|
||||
@ -3952,7 +3952,7 @@ GLFWAPI void glfwWindowSetCaptionArea(GLFWwindow* window, int offsetX, int offse
|
||||
*
|
||||
* @ingroup window
|
||||
*/
|
||||
GLFWAPI void glfwWindowSetResizeBorderSize(GLFWwindow* window, int size);
|
||||
GLFWAPI void glfwSetWindowResizeBorderSize(GLFWwindow* window, int size);
|
||||
|
||||
/*! @brief Requests user attention to the specified window.
|
||||
*
|
||||
|
@ -1894,7 +1894,8 @@ void _glfwResizeWindowWin32(_GLFWwindow* window, int border)
|
||||
wBorder = HTBOTTOMRIGHT;
|
||||
break;
|
||||
default:
|
||||
assert(GLFW_FALSE);
|
||||
assert(GLFW_FALSE);
|
||||
return;
|
||||
}
|
||||
ReleaseCapture();
|
||||
SendMessage(window->win32.handle, WM_NCLBUTTONDOWN, wBorder, 0);
|
||||
|
@ -875,7 +875,7 @@ GLFWAPI void glfwResizeWindow(GLFWwindow* handle, int border)
|
||||
_glfw.platform.resizeWindow(window, border);
|
||||
}
|
||||
|
||||
GLFWAPI void glfwWindowSetCaptionArea(GLFWwindow* handle, int offsetX, int offsetY, int sizeX, int sizeY)
|
||||
GLFWAPI void glfwSetWindowCaptionArea(GLFWwindow* handle, int offsetX, int offsetY, int sizeX, int sizeY)
|
||||
{
|
||||
_GLFWwindow* window = (_GLFWwindow*)handle;
|
||||
assert(window != NULL);
|
||||
@ -891,7 +891,7 @@ GLFWAPI void glfwWindowSetCaptionArea(GLFWwindow* handle, int offsetX, int offse
|
||||
window->captionSizeY = sizeY;
|
||||
}
|
||||
|
||||
GLFWAPI void glfwWindowSetResizeBorderSize(GLFWwindow* handle, int size)
|
||||
GLFWAPI void glfwSetWindowResizeBorderSize(GLFWwindow* handle, int size)
|
||||
{
|
||||
_GLFWwindow* window = (_GLFWwindow*)handle;
|
||||
assert(window != NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user