mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-04 03:00:58 +00:00
Fix mouse centering in menu
This commit is contained in:
parent
3fbb171990
commit
90b005a44a
3 changed files with 7 additions and 9 deletions
|
@ -1109,7 +1109,10 @@ void mouseLockToWindow(char a)
|
|||
void mouseMoveToCenter(void)
|
||||
{
|
||||
if (sdl_window)
|
||||
SDL_WarpMouseInWindow(sdl_window, xdim / 2, ydim / 2);
|
||||
{
|
||||
g_mouseAbs = { xdim >> 1, ydim >> 1 };
|
||||
SDL_WarpMouseInWindow(sdl_window, g_mouseAbs.x, g_mouseAbs.y);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue