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:
parent
548424713b
commit
73a1066613
|
@ -125,6 +125,10 @@ static void vnc_reset_session(FAR struct vnc_session_s *session,
|
||||||
session->nwhupd = 0;
|
session->nwhupd = 0;
|
||||||
session->change = true;
|
session->change = true;
|
||||||
|
|
||||||
|
#ifdef CONFIG_VNCSERVER_TOUCH
|
||||||
|
session->touch.maxpoint = 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Careful not to disturb the keyboard/mouse callouts set by
|
/* Careful not to disturb the keyboard/mouse callouts set by
|
||||||
* vnc_fbinitialize(). Client related data left in garbage state.
|
* vnc_fbinitialize(). Client related data left in garbage state.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue