fix warnings

This commit is contained in:
lixianjing 2019-10-24 15:39:51 +08:00
parent 4c8b43f381
commit 023c81df44

View File

@ -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;