TFT display corners rounded and white


I want to make my TFT display (ILI9488 controller) black (as a black background). I’m using an object with a style that is black. I’m having an issue where these white corners will show up, almost as if the object is rounded. I’ve set the border to a width of 0.

What MCU/Processor/Board and compiler are you using?

Raspberry Pi Pico/RP2040

What LVGL version are you using?


What do you want to achieve?

A fully black display

What have you tried so far?

Looking through documentation and old forum posts to see if anyone has had the same issue.

Code to reproduce

I am not using a simulator, so I’m not sure if this code will work on the simulator, but I’m not doing something very complicated, basically just a black rectangle to fill the screen.

void home_screen() {
  static lv_style_t home_style;
  lv_style_set_bg_color(&home_style, lv_color_hex(0x000000));

  lv_obj_t* parent = lv_obj_create(lv_scr_act());       /*Set the screen as the parent*/
  lv_obj_set_size(parent, SCREEN_WIDTH, SCREEN_HEIGHT); /*Set the size of the parent*/
  lv_obj_add_style(parent, &home_style, LV_PART_MAIN);
  lv_obj_set_style_clip_corner(parent, true, 0);
  lv_style_set_border_width(&home_style, 0);

Screenshot and/or video


I think it’s a default in the styles.
‘’‘lv_style_set_radius(&style, 0);’‘’’

Oh this worked, thank you so much!