mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 23:11:58 +00:00
Fixed mouse capturing when video isn't initialized yet
This commit is contained in:
parent
15a269db9d
commit
2c3d9e3ab8
1 changed files with 2 additions and 1 deletions
|
@ -567,6 +567,8 @@ void CocoaVideo::SetWindowVisible(bool visible)
|
|||
{
|
||||
[video->m_window orderOut:nil];
|
||||
}
|
||||
|
||||
I_SetNativeMouse(!visible);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1248,5 +1250,4 @@ NSSize I_GetContentViewSize(const NSWindow* const window)
|
|||
void I_SetMainWindowVisible(bool visible)
|
||||
{
|
||||
CocoaVideo::SetWindowVisible(visible);
|
||||
I_SetNativeMouse(!visible);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue