Description
Running example from documentation about line widget.
I can see only end points but diagonal line rendering misses.
(see attached screen shot from simulator)
Modified code for displaying horizontal and vertical lines only renders visible lines correctly.
But lines from say 100, 100 to 200, 200 is not visible.
What setting is missed?
lvgl_demo code is working perfect in the simulator.
What MCU/Processor/Board and compiler are you using?
VScode2022 - simulator on Windows11
What LVGL version are you using?
LVGL 9
What do you want to achieve?
Learning different widget usage under LVGL9
What have you tried so far?
Example codes given under LVGL 9 widget documentations
about line (lv_line)
Code to reproduce
void lv_example_line_1(void)
{
/*Create an array for the points of the line*/
static lv_point_precise_t line_points[] = { {5, 5}, {70, 70}, {120, 10}, {180, 60}, {240, 10} };
/*Create style*/
static lv_style_t style_line;
lv_style_init(&style_line);
lv_style_set_line_width(&style_line, 8);
lv_style_set_line_color(&style_line, lv_palette_main(LV_PALETTE_BLUE));
lv_style_set_line_rounded(&style_line, true);
/*Create a line and apply the new style*/
lv_obj_t * line1;
line1 = lv_line_create(lv_screen_active());
lv_line_set_points(line1, line_points, 5); /*Set the points*/
lv_obj_add_style(line1, &style_line, 0);
lv_obj_center(line1);
}