]> git.lizzy.rs Git - minetest.git/commit
Virtual joystick: Use s32 when using m_screensize as a subtrahend (#12814)
authorMuhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>
Sat, 26 Nov 2022 14:16:14 +0000 (21:16 +0700)
committerGitHub <noreply@github.com>
Sat, 26 Nov 2022 14:16:14 +0000 (09:16 -0500)
commit40a45b8c995e12778c4478011583c08447da88eb
tree07cc3603f8f9aa3a8a53f2f2da1a677761317273
parentf04d4d029182d27e2557b9ea0a6a6fc39a3e17f5
Virtual joystick: Use s32 when using m_screensize as a subtrahend (#12814)

If still uses u32, m_screensize will yield a big value (underflow) when used as a subtrahend.
ETIE_MOVED is allowed to be run if joystick's ID is available and virtual joystick is fixed.
Add .0f for some float values.
src/gui/touchscreengui.cpp