perf(bar): 仅在 bar 需要绘制新内容时才重绘并 flush 后端

This commit is contained in:
2026-06-15 23:27:28 +08:00
parent 41f82d7039
commit 30e9751119
3 changed files with 10 additions and 6 deletions

View File

@@ -41,4 +41,4 @@ typedef struct bar_t {
void bar_init(bar_t *bar, listeners_t *listeners);
void bar_cleanup(bar_t *bar);
void bar_update(bar_t *bar);
void bar_draw(bar_t *bar);
bool bar_draw(bar_t *bar);