mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-31 07:56:23 +08:00
lv_draw_vbasic.c: remove unnecessary cast
This commit is contained in:
@@ -445,7 +445,7 @@ void lv_vmap(const lv_area_t * cords_p, const lv_area_t * mask_p,
|
|||||||
lv_coord_t col;
|
lv_coord_t col;
|
||||||
for(row = masked_a.y1; row <= masked_a.y2; row++) {
|
for(row = masked_a.y1; row <= masked_a.y2; row++) {
|
||||||
for(col = 0; col < map_useful_w; col++) {
|
for(col = 0; col < map_useful_w; col++) {
|
||||||
lv_color_t px_color = (lv_color_t) * ((lv_color_t *)&map_p[(uint32_t)col * px_size_byte]);
|
lv_color_t px_color = *((lv_color_t *)&map_p[(uint32_t)col * px_size_byte]);
|
||||||
disp->driver.vdb_wr((uint8_t *)vdb_p->buf, vdb_width, col + masked_a.x1, row, px_color, opa);
|
disp->driver.vdb_wr((uint8_t *)vdb_p->buf, vdb_width, col + masked_a.x1, row, px_color, opa);
|
||||||
}
|
}
|
||||||
map_p += map_width * px_size_byte; /*Next row on the map*/
|
map_p += map_width * px_size_byte; /*Next row on the map*/
|
||||||
|
|||||||
Reference in New Issue
Block a user