From 2f23f5b017905a20a20e36cdb504462455db6eb2 Mon Sep 17 00:00:00 2001 From: fvanroie Date: Sat, 17 Jul 2021 18:08:17 +0200 Subject: [PATCH] Fix(gui) Cursor style for ESP8266 --- src/hasp_gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hasp_gui.cpp b/src/hasp_gui.cpp index 69413544..df3ea338 100644 --- a/src/hasp_gui.cpp +++ b/src/hasp_gui.cpp @@ -321,9 +321,9 @@ void guiSetup() #else cursor = lv_obj_create(mouse_layer); // show cursor object on every page lv_obj_set_size(cursor, 9, 9); - lv_obj_set_style_local_radius(cursor, LV_OBJ_PART_MAIN | LV_STATE_DEFAULT, LV_RADIUS_CIRCLE); - lv_obj_set_style_local_bg_color(cursor, LV_OBJ_PART_MAIN | LV_STATE_DEFAULT, LV_COLOR_RED); - lv_obj_set_style_bg_opa(cursor, LV_OBJ_PART_MAIN | LV_STATE_DEFAULT, LV_OPA_COVER); + lv_obj_set_style_radius(cursor, LV_RADIUS_CIRCLE, LV_OBJ_PART_MAIN | LV_STATE_DEFAULT); + lv_obj_set_style_bg_color(cursor, LV_COLOR_RED, LV_OBJ_PART_MAIN | LV_STATE_DEFAULT); + lv_obj_set_style_bg_opa(cursor, LV_OPA_COVER, LV_OBJ_PART_MAIN | LV_STATE_DEFAULT); #endif lv_indev_set_cursor(mouse_indev, cursor); /*Connect the image object to the driver*/ }