mirror of
https://github.com/glfw/glfw.git
synced 2025-10-03 21:30:57 +00:00
Merge c044bbcb4d
into 08b3af4387
This commit is contained in:
commit
e90b34fa96
@ -71,13 +71,18 @@ static getWindowExStyle(const _GLFWwindow* window)
|
|||||||
|
|
||||||
// Updates the cursor clip rect
|
// Updates the cursor clip rect
|
||||||
//
|
//
|
||||||
static void updateClipRect(_GLFWwindow* window)
|
static BOOL updateClipRect(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
RECT clipRect;
|
RECT clipRect;
|
||||||
GetClientRect(window->win32.handle, &clipRect);
|
if (GetClientRect(window->win32.handle, &clipRect))
|
||||||
ClientToScreen(window->win32.handle, (POINT*) &clipRect.left);
|
{
|
||||||
ClientToScreen(window->win32.handle, (POINT*) &clipRect.right);
|
if (ClientToScreen(window->win32.handle, (POINT*) &clipRect.left))
|
||||||
ClipCursor(&clipRect);
|
{
|
||||||
|
if (ClientToScreen(window->win32.handle, (POINT*) &clipRect.right))
|
||||||
|
return ClipCursor(&clipRect);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hide the mouse cursor
|
// Hide the mouse cursor
|
||||||
|
Loading…
Reference in New Issue
Block a user