From 1b5e1651614f25020c6d35f4a41e98dadc402019 Mon Sep 17 00:00:00 2001 From: yixy-only Date: Wed, 2 Oct 2024 22:35:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=B8=B2=E6=9F=93=E6=A8=A1=E5=BC=8F=E4=B8=8B=E9=95=BF=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=97=A0=E7=BB=98=E5=88=B6=E6=93=8D=E4=BD=9C=E6=97=B6?= =?UTF-8?q?=E4=B8=8D=E8=A7=A6=E5=8F=91=E5=88=B7=E6=96=B0=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics.cpp b/src/graphics.cpp index 60684a9..65e437f 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -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); }