nyx: Various fixes

This commit is contained in:
CTCaer
2019-08-28 02:20:48 +03:00
parent d0b0164077
commit 92a60a1e89
5 changed files with 34 additions and 25 deletions

View File

@@ -143,8 +143,11 @@ void lv_indev_set_cursor(lv_indev_t * indev, lv_obj_t * cur_obj)
if(indev->driver.type != LV_INDEV_TYPE_POINTER) return;
indev->cursor = cur_obj;
lv_obj_set_parent(indev->cursor, lv_layer_sys());
lv_obj_set_pos(indev->cursor, indev->proc.act_point.x, indev->proc.act_point.y);
if (indev->cursor)
{
lv_obj_set_parent(indev->cursor, lv_layer_sys());
lv_obj_set_pos(indev->cursor, indev->proc.act_point.x, indev->proc.act_point.y);
}
}
#if USE_LV_GROUP

View File

@@ -36,6 +36,7 @@ extern "C" {
/**
* Possible priorities for lv_tasks
*/
#define LV_TASK_ONESHOT 0
enum
{
LV_TASK_PRIO_OFF = 0,