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:
parent
1043004412
commit
26195eaea9
@ -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",
|
||||
¶m_task_xcb_instance,
|
||||
¶m_period,
|
||||
¶m_prio,
|
||||
¶m_period_int,
|
||||
¶m_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,
|
||||
|
Loading…
Reference in New Issue
Block a user