Skip to content

Commit

Permalink
Buttons OK
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Jun 4, 2023
1 parent f9d550e commit c80556b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Binary file modified feature-phone.wasm
Binary file not shown.
2 changes: 0 additions & 2 deletions feature-phone.zig
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ fn createCallButtons(cont: *c.lv_obj_t) !void {
const text = call_labels[i].ptr;
const btn = c.lv_btn_create(cont);
c.lv_obj_set_size(btn, 250, 100);
c.lv_obj_add_flag(btn, c.LV_OBJ_FLAG_CHECKABLE);
_ = c.lv_obj_add_event_cb(btn, eventHandler, c.LV_EVENT_ALL, @intToPtr(*anyopaque, @ptrToInt(text)));

const label = c.lv_label_create(btn);
Expand All @@ -195,7 +194,6 @@ fn createDigitButtons(cont: *c.lv_obj_t) !void {
const text = digit_labels[i].ptr;
const btn = c.lv_btn_create(cont);
c.lv_obj_set_size(btn, 150, 120);
c.lv_obj_add_flag(btn, c.LV_OBJ_FLAG_CHECKABLE);
_ = c.lv_obj_add_event_cb(btn, eventHandler, c.LV_EVENT_ALL, @intToPtr(*anyopaque, @ptrToInt(text)));

const label = c.lv_label_create(btn);
Expand Down

0 comments on commit c80556b

Please sign in to comment.