mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Merge branch 'release/1.10.x'
This commit is contained in:
commit
734bb8552c
@ -1315,11 +1315,8 @@ track_mouse_leaving(HWND hwnd) {
|
|||||||
bool WinGraphicsWindow::
|
bool WinGraphicsWindow::
|
||||||
confine_cursor() {
|
confine_cursor() {
|
||||||
RECT clip;
|
RECT clip;
|
||||||
if (!GetWindowRect(_hWnd, &clip)) {
|
get_client_rect_screen(_hWnd, &clip);
|
||||||
windisplay_cat.warning()
|
|
||||||
<< "GetWindowRect() failed, cannot confine cursor.\n";
|
|
||||||
return false;
|
|
||||||
} else {
|
|
||||||
windisplay_cat.info()
|
windisplay_cat.info()
|
||||||
<< "ClipCursor() to " << clip.left << "," << clip.top << " to "
|
<< "ClipCursor() to " << clip.left << "," << clip.top << " to "
|
||||||
<< clip.right << "," << clip.bottom << endl;
|
<< clip.right << "," << clip.bottom << endl;
|
||||||
@ -1331,7 +1328,6 @@ confine_cursor() {
|
|||||||
} else {
|
} else {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user