summaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorHendrik Brucker <hendrik.brucker@mail.de>2022-09-01 18:39:17 +0200
committerHendrik Brucker <hendrik.brucker@mail.de>2022-09-01 18:39:17 +0200
commitea0472fecfb7c8fea06abcc9ad6b849c9b20f8df (patch)
tree1e328f0be80ac4b2ac57f22c1f982ec98bf2da9e /scene/2d
parentf02134a8c0452a2c9fb60f9d0260e5f1ee3e252d (diff)
Refactor BitMap and add tests
Co-authored-by: Resul Çelik <resul_celik@hotmail.com>
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;
}
}