fix linux compile errors

This commit is contained in:
lixianjing 2019-10-30 20:27:38 -07:00
parent e300c272ab
commit d48e2dae46
2 changed files with 2 additions and 3 deletions

View File

@ -47,7 +47,7 @@ else:
#VGCANVAS='CAIRO'
#NANOVG_BACKEND='GLES2'
#NANOVG_BACKEND='GLES3'
#NANOVG_BACKEND='AGG'
NANOVG_BACKEND='AGG'
#NANOVG_BACKEND='AGGE'
#NANOVG_BACKEND='BGFX'

View File

@ -69,7 +69,7 @@ static const graphic_buffer_vtable_t s_graphic_buffer_default_vtable = {
.unlock = graphic_buffer_default_unlock,
.destroy = graphic_buffer_default_destroy};
static graphic_buffer_t* graphic_buffer_default_create(uint32_t w, uint32_t h,
graphic_buffer_t* graphic_buffer_default_create(uint32_t w, uint32_t h,
bitmap_format_t format,
uint32_t line_length) {
uint32_t size = 0;
@ -101,7 +101,6 @@ static graphic_buffer_t* graphic_buffer_default_create(uint32_t w, uint32_t h,
return NULL;
}
}
B
graphic_buffer_t* graphic_buffer_default_create_with_const_data(const uint8_t* data) {
graphic_buffer_default_t* buffer = NULL;