Skip to content

Commit

Permalink
fix: 修复自动渲染模式下长时间无绘制操作时不触发刷新的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yixy-only committed Oct 2, 2024
1 parent cfb15e0 commit 442227b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ static void on_repaint(struct _graph_setting* pg, HWND hwnd, HDC dc)
static void on_timer(struct _graph_setting* pg, HWND hwnd, unsigned id)
{
if (!pg->skip_timer_mark && id == RENDER_TIMER_ID) {
if (pg->update_mark_count <= 0) {
if (pg->update_mark_count < UPDATE_MAX_CALL) {
pg->update_mark_count = UPDATE_MAX_CALL;
on_repaint(pg, hwnd, NULL);
}
Expand Down

0 comments on commit 442227b

Please sign in to comment.