mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-09 00:24:15 +00:00
Fix mouse being pulled to the bottom right (#1156)
Signed-off-by: Ayush Thoren <ayushthoren@gmail.com>
This commit is contained in:
@@ -1298,10 +1298,8 @@ void IUIScene_AbstractContainerMenu::onMouseTick()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
vPointerPos.x = floor(vPointerPos.x);
|
vPointerPos.x = static_cast<float>(floor(vPointerPos.x + 0.5f));
|
||||||
vPointerPos.x += ( static_cast<int>(vPointerPos.x)%2);
|
vPointerPos.y = static_cast<float>(floor(vPointerPos.y + 0.5f));
|
||||||
vPointerPos.y = floor(vPointerPos.y);
|
|
||||||
vPointerPos.y += ( static_cast<int>(vPointerPos.y)%2);
|
|
||||||
m_pointerPos = vPointerPos;
|
m_pointerPos = vPointerPos;
|
||||||
|
|
||||||
adjustPointerForSafeZone();
|
adjustPointerForSafeZone();
|
||||||
|
|||||||
Reference in New Issue
Block a user