Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(vg_lite): fix LV_RADIUS_CIRCLE not round #5543

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

FASTSHIFT
Copy link
Collaborator

Description of the feature or fix

Dividing by 2 for odd integers results in loss of precision.

void test_demo()
{
    lv_obj_t* main_obj = lv_obj_create(lv_scr_act());
    lv_obj_set_style_pad_all(main_obj, 0, 0);
    lv_obj_set_style_radius(main_obj, LV_RADIUS_CIRCLE, 0);
    lv_obj_set_style_bg_color(main_obj, lv_palette_main(LV_PALETTE_BLUE), 0);
    lv_obj_set_size(main_obj, 279, 279);
}

Before:
image

After:
image

Notes

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
@FASTSHIFT FASTSHIFT merged commit 8b189f4 into lvgl:master Jan 31, 2024
16 checks passed
@FASTSHIFT FASTSHIFT deleted the fix_vg_lite_radius branch February 5, 2024 03:11
kisvegabor pushed a commit that referenced this pull request Feb 5, 2024
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants