mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 02:58:26 +08:00
fix warnings
This commit is contained in:
parent
4c8b43f381
commit
023c81df44
@ -120,7 +120,7 @@ static int vgcanvas_nanovg_ensure_image(vgcanvas_nanovg_t* canvas, bitmap_t* img
|
||||
}
|
||||
|
||||
if (bpp * img->w == img->line_length) {
|
||||
data = img->data;
|
||||
data = (uint8_t*)img->data;
|
||||
} else {
|
||||
size = bpp * img->w * img->h;
|
||||
size = TK_ROUND_TO(size, BITMAP_ALIGN_SIZE) + BITMAP_ALIGN_SIZE;
|
||||
|
Loading…
Reference in New Issue
Block a user