update docs

This commit is contained in:
lixianjing 2021-01-12 10:07:33 +08:00
parent 3541b0d166
commit 715ebf11bf
3 changed files with 3 additions and 1 deletions

View File

@ -291,7 +291,7 @@ static agge::pixel32_rgba to_pixel32_rgba(NVGcolor rgba) {
static int clip_rect_is_zero(NVGscissor* scissor) {
int w = (int)(scissor->extent[0] + 0.5f);
int h = (int)(scissor->extent[1] + 0.5f);
if (w == 0 || h == 0) {
if (w <= 0 || h <= 0) {
return 0;
}
return 1;

View File

@ -3,6 +3,7 @@
2021/01/12
* 完善 widget\_exec\_code
* fscript widget增加send\_key。
* 修复agge初始化裁剪区宽高默认为-1的问题感谢智明提供补丁
2021/01/11
* 更新文档。

View File

@ -266,6 +266,7 @@ static vgcanvas_t* lcd_mem_get_vgcanvas(lcd_t* lcd) {
if (mem->vgcanvas == NULL) {
mem->vgcanvas = vgcanvas_create(w, h, line_length, format, fbdata);
vgcanvas_clip_rect(mem->vgcanvas, 0, 0, w, h);
} else {
vgcanvas_reinit(mem->vgcanvas, w, h, line_length, format, fbdata);
}