summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd/wayland/wayland_thread.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-05-02 12:46:22 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-05-02 12:46:22 +0200
commit0b6c29f2d22c438e0515634add96608bcd770c92 (patch)
tree37239cb72de6e8ee54367814a580c49ba9230e85 /platform/linuxbsd/wayland/wayland_thread.cpp
parenta21824b29314856178eca78fe39e318aab41e5a5 (diff)
parent308dbb8c6359589ce7411027cecd777938e40bd7 (diff)
downloadredot-engine-0b6c29f2d22c438e0515634add96608bcd770c92.tar.gz
Merge pull request #89114 from AThousandShips/vec_elem_scalar
[Core] Add scalar versions of `Vector*` `min/max/clamp/snap(ped)`
Diffstat (limited to 'platform/linuxbsd/wayland/wayland_thread.cpp')
-rw-r--r--platform/linuxbsd/wayland/wayland_thread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/linuxbsd/wayland/wayland_thread.cpp b/platform/linuxbsd/wayland/wayland_thread.cpp
index 3a63b87c7a..1701aa650d 100644
--- a/platform/linuxbsd/wayland/wayland_thread.cpp
+++ b/platform/linuxbsd/wayland/wayland_thread.cpp
@@ -2461,7 +2461,7 @@ void WaylandThread::_wp_tablet_tool_on_frame(void *data, struct zwp_tablet_tool_
// According to the tablet proto spec, tilt is expressed in degrees relative
// to the Z axis of the tablet, so it shouldn't go over 90 degrees either way,
// I think. We'll clamp it just in case.
- td.tilt = td.tilt.clamp(Vector2(-90, -90), Vector2(90, 90));
+ td.tilt = td.tilt.clampf(-90, 90);
mm->set_tilt(td.tilt / 90);