1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-19 17:46:35 +00:00

Fix controller tooltips in magic menu appearing for wrong spell

This commit is contained in:
Andrew Lanzone 2025-06-03 08:56:39 -07:00
parent a6d03717cb
commit a824993a60

View file

@ -267,7 +267,7 @@ namespace MWInput
void MouseManager::warpMouseToWidget(MyGUI::Widget* widget) void MouseManager::warpMouseToWidget(MyGUI::Widget* widget)
{ {
float widgetX = widget->getAbsoluteCoord().left + widget->getWidth() / 2; float widgetX = widget->getAbsoluteCoord().left + widget->getWidth() / 2;
float widgetY = widget->getAbsoluteCoord().top + widget->getHeight() - 30; float widgetY = widget->getAbsoluteCoord().top + widget->getHeight() / 4;
if (std::abs(mGuiCursorX - widgetX) > 1 || std::abs(mGuiCursorY - widgetY) > 1) if (std::abs(mGuiCursorX - widgetX) > 1 || std::abs(mGuiCursorY - widgetY) > 1)
{ {
mGuiCursorX = widgetX; mGuiCursorX = widgetX;