mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02: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:
committed by
Perttu Ahola
parent
6cf87e1d23
commit
c1d8eeb70a
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user