1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Make dragged itemstack following the mouse cursor much smoother

by using the cursor coordinates directly, instead of updating them only when a mouse event is seen.
This commit is contained in:
Jürgen Doser 2012-11-28 18:39:58 +01:00 committed by Perttu Ahola
parent 6cf87e1d23
commit c1d8eeb70a
3 changed files with 10 additions and 15 deletions

View file

@ -144,7 +144,7 @@ class GUIFormSpecMenu : public GUIModalMenu
};
public:
GUIFormSpecMenu(gui::IGUIEnvironment* env,
GUIFormSpecMenu(irr::IrrlichtDevice* dev,
gui::IGUIElement* parent, s32 id,
IMenuManager *menumgr,
InventoryManager *invmgr,
@ -197,6 +197,7 @@ protected:
v2s32 spacing;
v2s32 imgsize;
irr::IrrlichtDevice* m_device;
InventoryManager *m_invmgr;
IGameDef *m_gamedef;