vnc_server: set touch.maxpoint to 1 for circbuf_init

set touch.maxpoint to 1 in vnc_server.c for circbuf_init,otherwise
touch_event will circbuf_overwrite a wrong value.
test step:vnc run lvgldemo,test input event

Signed-off-by: jianglianfang <jianglianfang@xiaomi.com>
This commit is contained in:
jianglianfang 2023-05-16 17:52:19 +08:00 committed by Xiang Xiao
parent 548424713b
commit 73a1066613
1 changed files with 4 additions and 0 deletions

View File

@ -125,6 +125,10 @@ static void vnc_reset_session(FAR struct vnc_session_s *session,
session->nwhupd = 0;
session->change = true;
#ifdef CONFIG_VNCSERVER_TOUCH
session->touch.maxpoint = 1;
#endif
/* Careful not to disturb the keyboard/mouse callouts set by
* vnc_fbinitialize(). Client related data left in garbage state.
*/