Skip to content

Commit

Permalink
Enable direct mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Jun 1, 2023
1 parent 35cc0b7 commit 86700c3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions display.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ void init_disp_drv(
// Set the Horizontal and Vertical Resolution
disp_drv->hor_res = hor_res;
disp_drv->ver_res = ver_res;

// Use screen-sized buffers and draw to absolute coordinates
disp_drv->direct_mode = 1;
}

/****************************************************************************
Expand Down
Binary file modified feature-phone.wasm
Binary file not shown.
1 change: 1 addition & 0 deletions feature-phone.zig
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ fn createButton() void {
const btn = c.lv_btn_create(c.lv_scr_act());
_ = c.lv_obj_add_event_cb(btn, eventHandler, c.LV_EVENT_ALL, null);
c.lv_obj_align(btn, c.LV_ALIGN_CENTER, 0, 40);
c.lv_obj_add_flag(btn, c.LV_OBJ_FLAG_CHECKABLE);

const label = c.lv_label_create(btn);
c.lv_label_set_text(label, "Button");
Expand Down
Binary file modified lvglwasm.wasm
Binary file not shown.

0 comments on commit 86700c3

Please sign in to comment.