From 50c1158a52c9174478f631f88d6fddaa3adac9f0 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Sat, 18 Mar 2017 13:08:58 +0900 Subject: win32: eliminate flickering on all controls --- win32/toneview.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/win32/toneview.c b/win32/toneview.c index bee593e..63d1b73 100644 --- a/win32/toneview.c +++ b/win32/toneview.c @@ -206,8 +206,9 @@ static void on_timer(HWND hwnd, UINT id) { g.strbuf_w[i] = g.strbuf[i]; } DefWindowProc(g.tonelabel[c], WM_SETTEXT, 0, (LPARAM)g.strbuf_w); + RedrawWindow(g.tonelabel[c], 0, 0, RDW_ERASE | RDW_INVALIDATE); } - RedrawWindow(hwnd, 0, 0, RDW_ERASE | RDW_INVALIDATE | RDW_ALLCHILDREN); +// RedrawWindow(hwnd, 0, 0, RDW_ERASE | RDW_INVALIDATE | RDW_ALLCHILDREN); InvalidateRect(hwnd, 0, FALSE); } } -- cgit v1.2.3