diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2017-03-18 13:08:58 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2017-03-18 13:08:58 +0900 |
commit | 50c1158a52c9174478f631f88d6fddaa3adac9f0 (patch) | |
tree | 88da4a25bc60cc5bf5b9d4a8ca60f87bf4525358 /win32 | |
parent | 8a68fa12993848d20864a69d73ce320593a68429 (diff) |
win32: eliminate flickering on all controls
Diffstat (limited to 'win32')
-rw-r--r-- | win32/toneview.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } } |