1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2025-01-06 03:27:17 +03:00

lvgui-native: Fix lv_task_create bindings

This commit is contained in:
Samuel Dionne-Riel 2022-10-20 01:27:35 -04:00
parent 1043004412
commit 26195eaea9

View File

@ -11330,19 +11330,23 @@ mrb_mruby_lvgui_native_lv_task_create(mrb_state *mrb, mrb_value self)
lv_task_cb_t param_task_xcb;
// Parameter handling for native parameter `uint32_t period`
mrb_int param_period_int;
uint32_t param_period;
// Parameter handling for native parameter `lv_task_prio_t prio`
mrb_int param_prio_int;
lv_task_prio_t param_prio;
mrb_get_args(
mrb,
"oiio",
&param_task_xcb_instance,
&param_period,
&param_prio,
&param_period_int,
&param_prio_int,
&task_proc
);
param_period = (uint32_t)param_period_int;
param_prio = (lv_task_prio_t)param_prio_int;
param_task_xcb = mrb_mruby_lvgui_native_unwrap_pointer(
mrb,