whoops forgot about this one

This commit is contained in:
jacekpoz 2024-08-13 01:25:13 +02:00
parent 29f0d9f56a
commit 336aadc7a0
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -188,10 +188,11 @@ PtkHandle ptk_circle(PtkPos center, float radius, PtkColor color) {
PtkHandle ptk_clickable(PtkHandle hitbox, MouseButtonCallback on_press) { PtkHandle ptk_clickable(PtkHandle hitbox, MouseButtonCallback on_press) {
PtkClickable *ret = malloc(sizeof(PtkClickable)); PtkClickable *ret = malloc(sizeof(PtkClickable));
ret->type = PTK_COMPONENT_TYPE_CLICKABLE; *ret = (PtkClickable){
ret->children.size = 0; .type = PTK_COMPONENT_TYPE_CLICKABLE,
ret->hitbox = hitbox; .hitbox = hitbox,
ret->on_press = on_press; .on_press = on_press,
};
return (PtkHandle)ret; return (PtkHandle)ret;
} }