fixed app

This commit is contained in:
Mikulas Florek 2021-04-13 18:14:04 +02:00
parent af6a1091c2
commit 108c6e67f6

View file

@ -187,12 +187,11 @@ struct Runner final
void captureMouse(bool capture) {
if (m_focused) {
os::Rect rect = os::getWindowScreenRect(m_engine->getWindowHandle());
os::clipCursor(rect.left, rect.top, rect.width, rect.height);
os::grabMouse(m_engine->getWindowHandle());
os::showCursor(false);
}
else {
os::unclipCursor();
os::grabMouse(os::INVALID_WINDOW);
os::showCursor(true);
}
}