1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-14 09:05: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:
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

@@ -1513,7 +1513,7 @@ void the_game(
<<"Launching inventory"<<std::endl;
GUIFormSpecMenu *menu =
new GUIFormSpecMenu(guienv, guiroot, -1,
new GUIFormSpecMenu(device, guiroot, -1,
&g_menumgr,
&client, gamedef);
@@ -2296,7 +2296,7 @@ void the_game(
/* Create menu */
GUIFormSpecMenu *menu =
new GUIFormSpecMenu(guienv, guiroot, -1,
new GUIFormSpecMenu(device, guiroot, -1,
&g_menumgr,
&client, gamedef);
menu->setFormSpec(meta->getString("formspec"),