This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 73a1066613 vnc_server: set touch.maxpoint to 1 for circbuf_init
73a1066613 is described below
commit 73a10666139a39a1b88105f9dc12a53892378fa1
Author: jianglianfang <[email protected]>
AuthorDate: Tue May 16 17:52:19 2023 +0800
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 <[email protected]>
---
drivers/video/vnc/vnc_server.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/video/vnc/vnc_server.c b/drivers/video/vnc/vnc_server.c
index f0d79158f8..0aaeead070 100644
--- a/drivers/video/vnc/vnc_server.c
+++ b/drivers/video/vnc/vnc_server.c
@@ -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.
*/