improve vgcanvas_null.c/vgcanvas_nanovg_soft.c

This commit is contained in:
lixianjing 2021-05-31 16:57:58 +08:00
parent 3f91e2fc50
commit 26fbaf4e22
3 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,8 @@
# 最新动态
2021/06/01
* 完善vgcanvas\_null/vgcanvas\_nanovg\_soft的编译宏方便制作keil的pack(感谢静儒提供补丁)
2021/05/28
* 增加log\_dummy函数方便在没有真正的log函数时设置断点调试。
* 由于mem.c中导出了malloc等函数没有必要重载new/delete等操作符所以去掉misc/new.cpp|.hpp中的代码但为了兼容保留文件。

View File

@ -25,6 +25,8 @@
#include "base/vgcanvas.h"
#include "base/image_manager.h"
#ifdef WITH_VGCANVAS
#ifdef WITH_NANOVG_AGGE
#include "agge/nanovg_agge.h"
#elif defined(WITH_NANOVG_AGG)
@ -68,3 +70,4 @@ vgcanvas_t* vgcanvas_create(uint32_t w, uint32_t h, uint32_t stride, bitmap_form
return &(nanovg->base);
}
#endif

View File

@ -22,6 +22,8 @@
#include "tkc/mem.h"
#include "base/vgcanvas.h"
#ifndef WITH_VGCANVAS
vgcanvas_t* vgcanvas_create(uint32_t w, uint32_t h, uint32_t stride, bitmap_format_t format,
void* data) {
(void)w;
@ -30,3 +32,4 @@ vgcanvas_t* vgcanvas_create(uint32_t w, uint32_t h, uint32_t stride, bitmap_form
(void)data;
return NULL;
}
#endif