From 5142127ae0a73a83534561c6b3873b1cfb74ffab Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Tue, 13 Aug 2024 12:50:08 +0200 Subject: [PATCH] add clickable to components if encountered --- src/ptk_vk/components.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ptk_vk/components.c b/src/ptk_vk/components.c index 7c99110..bcd0759 100644 --- a/src/ptk_vk/components.c +++ b/src/ptk_vk/components.c @@ -88,14 +88,14 @@ void vk_component(PtkHandle component) { return; } + PTK_LIST_ADD(PtkHandle, m_components, component); + if (component->type == PTK_COMPONENT_TYPE_CLICKABLE) { PtkClickable *c = (PtkClickable *)component; vk_component(c->hitbox); return; } - PTK_LIST_ADD(PtkHandle, m_components, component); - switch (component->type) { case PTK_COMPONENT_TYPE_TRIANGLE: { triangle((PtkTriangle *)component, 0);