summaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-01 23:46:38 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-01 23:46:38 +0200
commit5263fd534385b220ff76886b3d8a7ba802a20004 (patch)
treec6655c9f20dee5dbbca2f7d154e5c77620907741 /scene/2d
parent2e0cffdb6f7d55130c1837472a1f4da8020371f1 (diff)
parentea0472fecfb7c8fea06abcc9ad6b849c9b20f8df (diff)
Merge pull request #64198 from Geometror/add-bitmap-tests
Diffstat (limited to 'scene/2d')
-rw-r--r--scene/2d/touch_screen_button.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/touch_screen_button.cpp b/scene/2d/touch_screen_button.cpp
index b620f58ed7..a02f322ef1 100644
--- a/scene/2d/touch_screen_button.cpp
+++ b/scene/2d/touch_screen_button.cpp
@@ -264,7 +264,7 @@ bool TouchScreenButton::_is_point_inside(const Point2 &p_point) {
if (bitmask.is_valid()) {
check_rect = false;
if (!touched && Rect2(Point2(), bitmask->get_size()).has_point(coord)) {
- if (bitmask->get_bit(coord)) {
+ if (bitmask->get_bitv(coord)) {
touched = true;
}
}