Skip to content

Commit d2ee4eb

Browse files
committed
fix tilegrid.contains for subclasses
1 parent 98cfac4 commit d2ee4eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/displayio/TileGrid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ MP_PROPERTY_GETSET(displayio_tilegrid_transpose_xy_obj,
316316
//| inside the tilegrid rectangle bounds."""
317317
//|
318318
static mp_obj_t displayio_tilegrid_obj_contains(mp_obj_t self_in, mp_obj_t touch_tuple) {
319-
displayio_tilegrid_t *self = MP_OBJ_TO_PTR(self_in);
319+
displayio_tilegrid_t *self = native_tilegrid(self_in);
320320

321321
mp_obj_t *touch_tuple_items;
322322
mp_obj_get_array_fixed_n(touch_tuple, 3, &touch_tuple_items);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy