mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 03:58:33 +08:00
update docs
This commit is contained in:
parent
3541b0d166
commit
715ebf11bf
@ -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;
|
||||
|
@ -3,6 +3,7 @@
|
||||
2021/01/12
|
||||
* 完善 widget\_exec\_code
|
||||
* fscript widget增加send\_key。
|
||||
* 修复agge初始化裁剪区宽高默认为-1的问题(感谢智明提供补丁)
|
||||
|
||||
2021/01/11
|
||||
* 更新文档。
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user