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:
parent
6cf87e1d23
commit
c1d8eeb70a
3 changed files with 10 additions and 15 deletions
|
@ -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"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue