improve nanovg

This commit is contained in:
lixianjing 2025-03-28 17:39:09 +08:00
parent be1a8bcf01
commit 42305e972c
2 changed files with 5 additions and 0 deletions

View File

@ -1279,6 +1279,10 @@ static void nvg__appendCommands(NVGcontext* ctx, float* vals, int nvals)
NVGstate* state = nvg__getState(ctx);
int i;
if (state->xform[0] == 0.0f || state->xform[3] == 0.0f) {
return;
}
if (ctx->ncommands+nvals > ctx->ccommands) {
float* commands;
int ccommands = ctx->ncommands+nvals + ctx->ccommands/2;

View File

@ -2,6 +2,7 @@
2025/03/28
* 修复edit切换控件的时候光标延迟消失和改为默认回车按钮不切换控件(感谢智明提供补丁)
* 修复在小程序中tab切换控件无效的问题(感谢智明提供补丁)
* 降低nanovg计算缩放为0的时候计算量(感谢智明提供补丁)
2025/03/27
* 增加树结构(感谢兆坤提供补丁)