Mercurial > hg > nnchat
changeset 586:7c593c9303e8
Add another tiny screen update flush check.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 07 Jul 2013 02:09:02 +0300 |
parents | 199fd3371035 |
children | 7ec53ab60e50 |
files | main.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/main.c Sun Jul 07 02:08:46 2013 +0300 +++ b/main.c Sun Jul 07 02:09:02 2013 +0300 @@ -2124,10 +2124,12 @@ editState.isError = TRUE; // Handle user input + BOOL flushed = FALSE; if (appCursesInit) { nnwin_input_process(editBuf, &editState, processUserInput); nnwin_update(editState.update, editState.mask, editBuf, optUserName, optUserColor); + flushed = TRUE; } if (++updateCount > 10) @@ -2147,7 +2149,7 @@ nn_conn_send_msg_v(conn, optUserNameEnc, "%%2FSetFontColor%%20%%2Dcolor%%20%06X", optUserColor); } - if (appCursesInit) + if (appCursesInit && !flushed) { nnwin_update(FALSE, editState.mask, editBuf, optUserName, optUserColor); }