handle button hitboxes properly

This commit is contained in:
jacekpoz 2024-08-13 12:10:48 +02:00
parent a4025fa924
commit 448e9fed14
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -85,10 +85,13 @@ void ellipse(const PtkEllipse *ellipse) {
}
void vk_component(PtkHandle component) {
if (
component->type == PTK_COMPONENT_TYPE_BOX ||
component->type == PTK_COMPONENT_TYPE_CLICKABLE
) {
if (component->type == PTK_COMPONENT_TYPE_BOX) {
return;
}
if (component->type == PTK_COMPONENT_TYPE_CLICKABLE) {
PtkClickable *c = (PtkClickable *)component;
vk_component(c->hitbox);
return;
}