summaryrefslogtreecommitdiff
path: root/src/guiFormSpecMenu.h
diff options
context:
space:
mode:
authorJürgen Doser <jurgen.doser@gmail.com>2012-11-28 18:39:58 +0100
committerPerttu Ahola <celeron55@gmail.com>2012-11-30 22:07:30 +0200
commitc1d8eeb70a63a73739a38e652a2b5462e08588ca (patch)
tree37452a6d8053e1662d91f5389d23ca5bd30ee9ce /src/guiFormSpecMenu.h
parent6cf87e1d23d829cc0d5c07160e8135ff5887d90d (diff)
downloadminetest-c1d8eeb70a63a73739a38e652a2b5462e08588ca.tar.gz
minetest-c1d8eeb70a63a73739a38e652a2b5462e08588ca.tar.bz2
minetest-c1d8eeb70a63a73739a38e652a2b5462e08588ca.zip
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.
Diffstat (limited to 'src/guiFormSpecMenu.h')
-rw-r--r--src/guiFormSpecMenu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/guiFormSpecMenu.h b/src/guiFormSpecMenu.h
index 890b54d61..e6a2efe42 100644
--- a/src/guiFormSpecMenu.h
+++ b/src/guiFormSpecMenu.h
@@ -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;