Early return for clang compile

Changed functions names to be in line with other glfw functions
This commit is contained in:
robbin.marcus 2022-10-19 12:18:46 +02:00
parent 797db588de
commit a9bef61089
5 changed files with 10 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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.
*

View File

@ -1895,6 +1895,7 @@ void _glfwResizeWindowWin32(_GLFWwindow* window, int border)
break;
default:
assert(GLFW_FALSE);
return;
}
ReleaseCapture();
SendMessage(window->win32.handle, WM_NCLBUTTONDOWN, wBorder, 0);

View File

@ -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);