1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

fix(lv_draw_sw_blend): fix wrong limitation range (#4079)

This commit is contained in:
Benign X 2023-03-23 10:52:58 +08:00 committed by GitHub
parent b466913494
commit 537975fa55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -844,7 +844,7 @@ static inline lv_color_t color_blend_true_color_additive(lv_color_t fg, lv_color
fg.green = LV_MIN(bg.green + fg.green, 63);
fg.blue = LV_MIN(bg.blue + fg.blue, 31);
#elif LV_COLOR_DEPTH == 32 || LV_COLOR_DEPTH == 24
fg.red = LV_MIN(bg.red + fg.red, 32551);
fg.red = LV_MIN(bg.red + fg.red, 255);
fg.green = LV_MIN(bg.green + fg.green, 255);
fg.blue = LV_MIN(bg.blue + fg.blue, 255);
#endif