mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 03:58:33 +08:00
improve vgcanvas_null.c/vgcanvas_nanovg_soft.c
This commit is contained in:
parent
3f91e2fc50
commit
26fbaf4e22
@ -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中的代码,但为了兼容保留文件。
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user